HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50297 - Divisible By Five

Guest
• Discussion of problem (1)

Section problems

• 50641 - Strong Prime Power
• 50640 - Cubes
• 50412 - K numbers
• 50310 - Kinetic Energy
• 50316 - Population Bar Chart
• 50314 - Falling Distance
• 50392 - How much space
• 50330 - Find the average of n numbers
• 50297 - Divisible By Five
• 50394 - Water Bills
• 50363 - Class GPA Average
• 50398 - Sum of kth Anti-diagonal
• 50651 - Largest power of two
• 50388 - Number of Armstrong Num...
• 50359 - Mode of a Series
• 50440 - Call Center
• 50353 - Cube of the Largest number

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.
Prepared by Ibrahim Mesecan. Difficulty Beta

Write a program to print numbers that are divisible by 5, for the integers from 1 to n

Input specification
You will be given one integer (n) which is greater than 5 and is less than or equal to 1000.
  5 < n ≤ 1000

Output specification
The numbers will be space separated.

Sample Input I
67

Sample Output I
5 10 15 20 25 30 35 40 45 50 55 60 65

Sample Input II
130

Sample Output II
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120 125 130

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

www.contester.ru