HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


51111 - Even Numbers

Guest
• Review clarifications (5)

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

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

Question: Display the even numbers which are between 0 and 50. The user is asked to enter an even number n from the keyboard that determines from which number must start showing the numbers.

Input specification: An even number n: 0 < n < 50.

Output specification: Consecutive even numbers: n, n+2, n+4,...,50. If it violates the input specifications, it outpus "Wrong Input".

Sample Input Sample Output
6
42
60
5
6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50
42 44 46 48 50
Wrong Input
Wrong Input



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

www.contester.ru