Primers nombres parells X74387


Statement
 

pdf   zip

Feu un programa que llegeixi un nombre @n@, i que escrigui en ordre els nombres parells des de @0@ fins a @n@.

Entrada

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

Sortida

Escriviu en ordre tots els nombres parells més petits o iguals que @n@.

Public test cases
  • Input

    6
    

    Output

    0
    2
    4
    6
    
  • Input

    5
    

    Output

    0
    2
    4
    
  • Input

    0
    

    Output

    0
    
  • Input

    -2
    

    Output

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