#t1138. 输出 1 到 n

输出 1 到 n

Output 1 to n

Problem Description

This is your first loop problem.

A loop is like running laps around a track: you tell the computer "run from lap 1 to lap nn", and it repeats the same action lap after lap for you. In C++, the most basic counting loop looks like this:

for (int i = 1; i <= n; i++) {
    // loop body: i will take the values 1, 2, 3, ..., n in turn
}

Read in a positive integer nn, and use a loop to output each of the numbers from 11 to nn on its own line, so you can feel how a loop counts one by one.

Input Format

One line, a positive integer nn.

Output Format

There are nn lines in total; the ii-th line outputs the integer ii.

Sample Input

3

Sample Output

1
2
3

Constraints

For 100%100\% of the data, 1≤n≤10001 \leq n \leq 1000.

Hint

  • After printing ii inside the loop body, remember to add a newline.
  • If your program never stops, the judge will return TLE (Time Limit Exceeded) — check whether i++ is written correctly.