HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


50892 - Even Numbers

Volume problems

• Cineplexx
• Cirku Belluci
• 51113 - The Menu
• 50882 - Say Hello
• 50883 - Win or Lose
• 50886 - Even or Odd
• 50894 - ASCII Codes
• 51111 - Even Numbers
• 50892 - Even Numbers
• 50907 - Second Largest
• 50891 - Smallest Number
• 50888 - Extracting Digits
• 50893 - Print All Numbers
• 50905 - Convert KPH to MPH
• 50881 - Exchange the Values
• 50903 - Basic Math Calculator
• 50885 - 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