3 ms·
Thanks... The code I was trying was: 10 i = 0 20 print "i =", i 30 i = i + 1 40 if i < 20 then 20 I note that if I use i% to force it to be an integer, then
by bcrl 5y ago
Thanks... The code I was trying was:
10 i = 0
20 print "i =", i
30 i = i + 1
40 if i < 20 then 20
I note that if I use i% to force it to be an integer, then it works. Quite a few BASIC implementation defaulted to floating point back in the '80s if the type wasn't explicitly specified.
This has brought back some memories. =-) AmigaBASIC was rather nice as it had primitives for dealing with the creation of windows and dealing with mouse input events. That and QuickBASIC kept me occupied for many, many hours as a kid.