RosettaCodeData/Task/Loops-For/BASIC/loops-for-10.basic

20 lines
214 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
OPENCONSOLE
FOR X=1 TO 5
FOR Y=1 TO X
LOCATE X,Y:PRINT"*"
NEXT Y
NEXT X
PRINT
CLOSECONSOLE
END
'Could also have been written the same way as the Creative Basic example, with no LOCATE command.