First numbers P37500


Statement
 

pdf   zip

html

Write a program that reads a number n, and prints all numbers between 0 and n.

Input

Input consists of a natural number n.

Output

Print in order all natural numbers between 0 and n.

Public test cases
  • Input

    5
    

    Output

    0
    1
    2
    3
    4
    5
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    C C++ Haskell Java Perl PHP Python Ruby Rust