Primers nombres positius X46036


Statement
 

pdf   zip

Feu un programa que llegeixi un nombre @n@, i que escrigui tots els nombres entre @1@ i @n@.

Entrada

Jutge.org introduirà un nombre enter @n@.

Sortida

Escriviu en ordre tots els naturals entre @1@ i @n@.

Public test cases
  • Input

    5
    

    Output

    1
    2
    3
    4
    5
    
  • Input

    1
    

    Output

    1
    
  • Input

    0
    

    Output

    
            
                                
  • Input

    -1
    

    Output

    
            
                                
  • Information
    Author
    Héctor Barriga
    Language
    Catalan
    Official solutions
    Python
    User solutions
    Python