m=int(input())n=int(input())k=int(input())for i in range (m,n+1,k): print(i)
3 100 5
3 8 13 18 23 28 33 38 43 48 53 58 63 68 73 78 83 88 93 98
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!