| Author |
Comment/Response |
James
|
12/16/12 11:40am
How do a Loop function which is conditional..
I am trying to make a loop function something like
x = y + 2
which has to stop at x = 6.
y is the starting point
I want it to calculate it it like this
y=2
it starts with x = 2 +2 = 4 and since 4<6, y = x
so x = 4 + 2 = 6 , and since 6=6 should the output be 4
How do i do that?
URL: , |
|