Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Factorial/MSX-Basic/factorial.basic
Normal file
12
Task/Factorial/MSX-Basic/factorial.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
100 CLS
|
||||
110 LIMITE = 13
|
||||
120 FOR N = 0 TO LIMITE
|
||||
130 PRINT RIGHT$(STR$(N),2);"! = ";
|
||||
135 GOSUB 150
|
||||
137 PRINT I
|
||||
140 NEXT N
|
||||
145 END
|
||||
150 'factorial iterative
|
||||
160 I = 1
|
||||
170 IF N > 1 THEN FOR J = 2 TO N : I = I*J : NEXT J
|
||||
230 RETURN
|
||||
Loading…
Add table
Add a link
Reference in a new issue