HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50011 - Divisible By Five

Section problems

• 50156 - Armstrong Numbers - 2
• 50157 - Palindromic Numbers
• 50166 - Max of 3 numbers
• Простые числа
• Степень
• Strong Prime Power
• Cubes
• 50010 - Weighted Average
• 50011 - Divisible By Five
• 50015 - Kinetic Energy
• 50018 - Falling Distance
• 50020 - Population Bar Chart
• 50029 - Buying Carpets
• 50045 - Class GPA Average
• 50064 - Water Bills
• 50068 - Sum of kth Anti-diagonal
• 50095 - Call Center

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