June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
12
Task/Floyds-triangle/BASIC/floyds-triangle-2.basic
Normal file
12
Task/Floyds-triangle/BASIC/floyds-triangle-2.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
n = 14
|
||||
num = 1
|
||||
last = (n^2 - n + 2) DIV 2
|
||||
FOR row = 1 TO n
|
||||
col = last
|
||||
FOR num = num TO num + row - 1
|
||||
@% = LEN(STR$(col)) + 1 : REM set column width
|
||||
PRINT num ;
|
||||
col += 1
|
||||
NEXT
|
||||
PRINT
|
||||
NEXT row
|
||||
Loading…
Add table
Add a link
Reference in a new issue