so i was given an assignment at uni, where i am required to write a program using for/while/do-while that reads 3 integer values: x,y and z.
the task is to move from x to y with z step and print the current value in a new line(including
the starting step but excluding the output step). z will always be a positive number
Example 1:
x = 3; y=14; z = 2;
output shall be:
3
5
7
9
11
13
can anybody help with it please, because I have no idea how to do this