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