HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50893 - Print All Numbers

Guest
• Review clarifications (2)

Section problems

• 50901 - Sum of Cubes-1
• 50975 - Cinema Tickets
• 50907 - Second Largest
• 50957 - Divisible by 3
• 50898 - Draw the Pattern
• 50959 - Draw the Pattern
• 50961 - Order of 3 Runner
• 50963 - Append Two Arrays
• 50893 - Print All Numbers
• 50968 - Number of Letters
• 50888 - Extracting Digits
• 50969 - Chef and Feedback
• 50962 - Find the Character
• 50974 - Area of the circle
• 50905 - Convert KPH to MPH
• 50967 - Finding Square Roots
• 50960 - Number of Heart Beats

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Print All Numbers

Write program to print all the numbers from 1 to N.

Input: In the first line, you will get a positive integer (N).

Output: The numbers until N (N is included) all separated with space.

Sample Input1:

Sample Input2:

5

12

Sample Output1:

Sample Output2:

1 2 3 4 5

1 2 3 4 5 6 7 8 9 10 11 12

 

Для отправки решений необходимо выполнить вход.

www.contester.ru