dos_compilers/Microsoft QuickBASIC v200/BUG.BAS

19 lines
397 B
QBasic
Raw Normal View History

2024-07-01 19:35:17 +02:00
tron
defint a-z
for startrow = 1 to 12 step 12
for startcol = 16 to 64 step 24
call triangle (startrow,startcol)
next startcol
next startrow
sub triangle (vertical,horizontal) static
for row = 0 to 10
locate vertical+row,horizontal-row
for x = horizontal-row to horizontal+row
locate vertical+row,x
print "*"
next x
next row
end sub