HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50297 - Divisible By Five

Guest
• Discussion of problem (1)

Section problems

• 50293 - Sum of odd numbers from ...
• 50365 - Sum of the numbers from a...
• 50388 - Number of Armstrong Num...
• 50363 - Class GPA Average
• 50390 - Total Salary Paid
• 50392 - How much space
• 50394 - Water Bills
• 50651 - Largest power of two
• 50297 - Divisible By Five
• 50332 - Variance of a series
• 50398 - Sum of kth Anti-diagonal
• 50400 - nth Row rth Element of a Table
• 50330 - Find the average of n numbers
• 50401 - Sum of Odd Numbers
• 50369 - Base Conversion
• 50407 - Missing Number
• 50336 - Buying Carpets

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