HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Linear Data Structures: Arrays > problem:


51111 - Even Numbers

Guest
• Review clarifications (5)

Section problems

• 51111 - Even Numbers
• 51115 - Pascal Triangle
• 51043 - Genome Sequencing
• 51116 - The Star Triangle
• 51042 - The most frequent k-mer
• 50271 - Factorial
• 50382 - Parkside's Other Triangle
• 51171 Question 3
• 51093 - rgb2gray

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