dos_compilers/Microsoft QuickBASIC v200/TRIANGLE.BAS

13 lines
250 B
QBasic
Raw Normal View History

2024-07-01 19:35:17 +02:00
defint a-z
sub tri (startd) static
startrow=10:startcol=startd
for row = 0 to 10
locate startrow+row,startcol-row
for x = startcol - row to startcol+row
locate startrow+row,x
print "*"
next x
next row
end sub