Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
18
Task/Floyds-triangle/FutureBasic/floyds-triangle.basic
Normal file
18
Task/Floyds-triangle/FutureBasic/floyds-triangle.basic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
void local fn FloydsTriangle( rows as int )
|
||||
int col, row, num = 1
|
||||
|
||||
printf @"%d rows:", rows
|
||||
for row = 1 to rows
|
||||
for col = 1 to row
|
||||
printf @"%4d\b", num
|
||||
num++
|
||||
next
|
||||
print
|
||||
next
|
||||
print
|
||||
end fn
|
||||
|
||||
fn FloydsTriangle( 5 )
|
||||
fn FloydsTriangle( 14 )
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue