HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50892 - Even Numbers

Section problems

• 50882 - Say Hello
• 50951 - Odd Numbers
• 50883 - Win or Lose
• 50892 - Even Numbers
• 50891 - Smallest Number
• 50965 - Draw the Pattern
• 50945 - Bigger or Smaller
• 50946 - Area of Rectangle
• 50949 - Vowel or Consonant
• 50881 - Exchange the Values
• 50937 - Calculate the Average
• 50947 - Calculate the Average

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.

Even Numbers

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

Input: A positive integer number N.

Output: All even numbers until N;

Sample Input:

Sample Input2:

7

14

Sample  Output1:

Sample  Output2:

2 4 6

2 4 6 8 10 12 14

 

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

www.contester.ru