Given $a$, $b$, $c$, print $a, a+c, a+2c, \dots$ while the value is $\le b$, one per line.
Input
Three integers $a$, $b$, $c$ ($1 \le a \le b \le 1000$, $1 \le c \le 10$).
Output
Print the values from $a$ stepping by $c$ while $\le b$, one per line.
Example 1
Input
2 10 3
Output
2 5 8
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.