Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
9
Task/Pascals-triangle/MSX-Basic/pascals-triangle.basic
Normal file
9
Task/Pascals-triangle/MSX-Basic/pascals-triangle.basic
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
10 INPUT "Number of rows? "; R
|
||||
20 FOR I = 0 TO R-1
|
||||
30 LET C = 1
|
||||
40 FOR K = 0 TO I
|
||||
50 PRINT USING "####"; C;
|
||||
60 LET C = C * (I-K) / (K+1)
|
||||
70 NEXT K
|
||||
80 PRINT
|
||||
90 NEXT I
|
||||
Loading…
Add table
Add a link
Reference in a new issue