HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


005. 50297 - Divisible By Five

Guest
• Discussion of problem (1)

Volume problems

• 115. 50425 - Calculating Weekly Pay
• 120. 50426 - Calculating Sales
• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50316 - Population Bar Chart
• 50336 - Buying Carpets
• 50295 - Weighted Average
• 003. 50358 - Series of Odd Numbers
• 005. 50297 - Divisible By Five
• 012. 50589 - The Number of Eggs Sold
• 030. 50584 - Total invoice amount
• 050. 50450 - Last Appereance of a ...
• 060. 50362 - Pythagorean Numbers
• 060. Problem 2
• 065. 50394 - Water Bills
• 070. 50465 - How many students h...
• 075. 50363 - Class GPA 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.
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