C. Numbers

Problem Setup

  • login to CS50 IDE
  • write cd in the terminal to go to the home directory
  • write mkdir numbers to create a folder called numbers
  • write cd numbers to go to the numbers folder
  • write code numbers.cpp to create a file called numbers.cpp and open it in the editor

Problem

Given an integer \(n\), you need to print all numbers from 1 to \(n\) inclusive.

Input

The first line contains an integer \(n\) where \(1 \leq n \leq 100\).

Output

Print all numbers from 1 to \(n\) inclusive, space-separated.

Examples

Example 1:

Input:

3

Output:

1 2 3

Example 2:

Input:

5

Output:

1 2 3 4 5

Test Your Code

Make sure you are in the numbers directory, then run the following command:

check50 iti-technical-team/problemset/2026/2/numbers

Submit Your Code

Make sure you are in the numbers directory, then run the following command:

submit50 iti-technical-team/problemset/2026/2/numbers