HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


51111 - Even Numbers

Guest
• Review clarifications (5)

Volume problems

• 50887 - Average of Test Scores
• 50895 - Hours Minutes and Seconds
• 50902 - Translate Score into Grade
• 50890 - Convert Celsius to Fahrenheit
• 50889 - Convert to Minutes and Sec...
• 50900 - Put the Numbers in Descend...
• 50884 - Area and Perimeter Of The ...
• 51113 - The Menu
• 51111 - Even Numbers
• Cineplexx
• Cirku Belluci
• 51040 - Annual profit
• 51038 - Simple interest
• 51041 - Plane Segmentation
• 51039 - Automated billing system
• 50310 - Kinetic Energy
• 50314 - Falling Distance

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