Esempi di Input/Output per Homework 1

  1. Input:

    6

    e il programma stampa in output:

          /\
         /\/\
        /\/\/\
       /\/\/\/\
      /\/\/\/\/\
     /\/\/\/\/\/\
    

    Input:

    2

    e il programma stampa in output:

          /\
         /\/\
    
  2. Input:

    12/5/2009

    Output:

    12 maggio 2009

    Input:

    05/06/1998

    Output:

    5 giugno 1998

  3. Input:

    128089

    Output:

    nove otto zero otto due uno

    Input:

    2566785

    Output:

    cinque otto sette sei sei cinque due

  4. Input:
    2.5
    1.4  -3.56  1.8  0.04  2.09  2.5008  2.8  7.08  -2.5  2.49
    

    Output:

    2.5008

    Input:

    1.7
    2.0  -4.56  1.8  1.6  4.39  5.5008  -2.7  4.18  -2.5  2.49
    

    Output:

    1.8

    Se ci sono più di uno valore dal distanza minima dello primo numero, è sufficiente a fornire solo uno in output.

  5. La linea terminata con il carattere '\n'. Input:

    Questa frase (non) significa niente

    Output:

    6
    5
    3
    9
    6
     

    Input:

    al massimo 9 personne

    Output:

    2
    7
    8
     

-- PaulWollan - 29 Oct 2009


This topic: Programmazione1 > WebHome > HW0910 > Homework1Esempi
Topic revision: r1 - 2009-10-29 - PaulWollan
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback