If you had a home computer with BASIC, how many times did this programme print the text '3 TO 2' on your computer?
10 FOR X=3 TO 2
20 PRINT "3 TO 2"
30 NEXT X
If you had a home computer with BASIC, how many times did this programme print the text '3 TO 2' on your computer?
10 FOR X=3 TO 2
20 PRINT "3 TO 2"
30 NEXT X
@scruss This is really interesting. My initial thought was, oh, it never prints. Then, reading the replies, I realized it may be behaving like a do .. while .. loop, and do the incrementing and testing after having gone through the loop.
And now I'm wondering what C does -- I expect it doesn't print at all.