HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50385 - From m to n

Guest
• Discussion of problem (1)

Section problems

• 50879 - Passed or Failed
• 50387 - Passengers in the Train
• 50438 - Pattern with stars
• 50426 - Calculating Sales
• 50425 - Calculating Weekly Pay
• 50456 - nth Digit of a Number
• 50463 - Drawing a Triangle
• 50452 - Multiplication Table
• 50385 - From m to n
• 50590 - Bronze medalists
• 50604 - Viruses
• 50605 - Behind Bars
• 50614 - Numbers game
• 50625 - Permutations
• 50626 - The route
• 50642 - Draft board
• 50646 - The more the better

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.
Question by Ibrahim Mesecan. Difficulty Alpha

Show numbers from m down to n

Question:
Write a program that shows the numbers from m down to n with the steps of k.

Input specification
You will be given three integer numbers (m, n, k) where 0 ≤ n < m ≤ 30000 and 0 < k ≤ 100.

Output specification
Show the number series separated by spaces.

Sample Input I
  50 26 4
Sample Input II
  28 21 3
Sample Output I
  50 46 42 38 34 30 26   
Sample Output II  
  28 25 22


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

www.contester.ru