HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


005. 50297 - Divisible By Five

Guest
• Discussion of problem (1)

Volume problems

• 001. 50385 - From m to n
• 002. 50365 - Sum of the numbers f...
• 002. 50452 - Multiplication Table
• 002. 50554 - nth power of m
• 003. 50387 - Passengers in the Train
• 003. 50358 - Series of Odd Numbers
• 004. 50424 - Area
• 004. 50522 - Multiplication Table - 2
• 005. 50297 - Divisible By Five
• 006. 50293 - Sum of odd numbers f...
• 007. 50401 - Sum of Odd Numbers
• 009. 50783 - The smallest number
• 010. 50782 - Max of N integers
• 012. 50352 - Selling Cows
• 012. 50589 - The Number of Eggs Sold
• 015. 50466 - Drawing Square From...
• 016. 50463 - Drawing a Triangle

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