Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Pascals-triangle/GW-BASIC/pascals-triangle.basic
Normal file
9
Task/Pascals-triangle/GW-BASIC/pascals-triangle.basic
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
10 INPUT "Number of rows? ",R
|
||||
20 FOR I=0 TO R-1
|
||||
30 C=1
|
||||
40 FOR K=0 TO I
|
||||
50 PRINT USING "####";C;
|
||||
60 C=C*(I-K)/(K+1)
|
||||
70 NEXT
|
||||
80 PRINT
|
||||
90 NEXT
|
||||
Loading…
Add table
Add a link
Reference in a new issue