MrDEB
Well-Known Member
been doing some reading on picbasic/picbasicpro by Dogan Ibrahim
It has an example of a REPEAT UNTIL loop that looks like a misprint? or am I not understanding it correctly?
k=0
Sum=Sum + 1
Cnt = Sum
k = k + 1
UNTIL k < 10
The book states that the routine is executed 10 times
BUT
k will never be less than 10 if I am interpreting this right?
Isn't it supposed to be UNTIL k > 10
It has an example of a REPEAT UNTIL loop that looks like a misprint? or am I not understanding it correctly?
k=0
Sum=Sum + 1
Cnt = Sum
k = k + 1
UNTIL k < 10
The book states that the routine is executed 10 times
BUT
k will never be less than 10 if I am interpreting this right?
Isn't it supposed to be UNTIL k > 10
Last edited: