HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50951 - Odd Numbers

Section problems

• 51104 - Steel
• 51113 - The Menu
• 50882 - Say Hello
• 50951 - Odd Numbers
• 50883 - Win or Lose
• 51112 - Even Numbers
• 50892 - Even Numbers
• 51105 - Currency System
• 50891 - Smallest Number
• 50965 - Draw the Pattern
• 51103 - Is it a triangle?
• 50945 - Bigger or Smaller

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.

Odd Numbers

Write a program to print all odd numbers until N (The number N is included).

Input: A positive integer number N.

Output: All odd numbers until N;

Sample Input:

Sample Input2:

8

15

Sample  Output1:

Sample  Output2:

1 3 5 7

1 3 5 7 9 11 13 15

 

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

www.contester.ru