MY BASICBBC BASIC, 29 bytes; BBC BASIC 2729 19 bytes
I have revisited my first answer that I have posted more than 3 years ago and found out that the bytecount could be significantly reduced:
- -4 bytes thanks to @Neil for the comment he left more than 3 years ago! (Substituting 7 bytes
PRINT i
with 3 bytesP.i
. Note that the aliasP.
is majuscule.) - then again, -4 bytes by doing the analogous replacement of
FOR i
(5 bytes) withF.i
(3 bytes) andNEXT
withN.
- -2 bytes: removal of two spaces
F.i=0TO&A*&A
P.i
N.
MY-BASIC, 32 bytes
for i=0 to 0xa*0xa
print ii;
next
Edit: Thanks for upvoting! I have found there is aThis has been my original golf but it has turned out that BBC BASIC dialect withhas an even shorter syntax for hexadecimals (it's in BBC BASIC):
for i=0 to &a*&a
print i
next
that's minus 2 bytesas well as handy for golfing aliases :)