m=int(input())n=int(input())k=int(input()) for i in range(m, n-1, -k): print(i)
10 1 1
10 9 8 7 6 5 4 3 2 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!