News for hackers. Stuff that matters.
Re:Sean Astin is the greatest BASIC programmer of our genera... by n4r9 on Thursday April 22, 2021 @03:33AM (#26899851)
Does BASIC allow padded string formatting? If so, you only need the one loop.
Re:Sean Astin is the greatest BASIC programmer of our genera... by szc on Thursday April 22, 2021 @08:56AM (#26902198)
No, but there are other tricks, such as prepending enough zeros and then taking the rightmost 4 characters from the string...

FOR I = 0 TO 9999 : A$ = RIGHT$("000"+STR$(I),4) : ... rest of the code : NEXT I