Count Up

You are given an integer N for each test case. Print all integers from 1 to N in increasing order.

Input

  • The input contains one integer N.

Output

Print the integers from 1 to N in increasing order, separated by a single space, without labels or trailing spaces.

Example 1:

Input:

5

Output:

1 2 3 4 5

Explanation:

For N = 5, print the numbers from 1 through 5.

Example 2:

Input:

1

Output:

1

Explanation:

For N = 1, only 1 is printed.

Now Your Turn!

Pick the correct output for the given input

Input:

4

Still unsure what the problem is asking ?

Let’s go through a few more examples, step by step, to make it clearer.

Constraints:

  • 1 <= N <= 20

Hints

Frequently Occurring Doubts

Interview Follow-up Questions

0
#include <bits/stdc++.h>
using namespace std;
 
int main() {
// Your code goes here
}
Test Case
Input