Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
7
Task/Factorial/GW-BASIC/factorial.basic
Normal file
7
Task/Factorial/GW-BASIC/factorial.basic
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
10 INPUT "Enter a non/negative integer: ", N
|
||||
20 IF N < 0 THEN GOTO 10
|
||||
30 F# = 1
|
||||
40 IF N = 0 THEN PRINT F# : END
|
||||
50 F# = F# * N
|
||||
60 N = N - 1
|
||||
70 GOTO 40
|
||||
Loading…
Add table
Add a link
Reference in a new issue