Count Up (Loops)

Read n and print the numbers from 1 to n, one per line.

Input: One integer n (1 to 1000).

Output: n lines.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • A for loop from 1 up to and including n.

More Loops practice