Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Multifactorial/Run-BASIC/multifactorial.basic
Normal file
17
Task/Multifactorial/Run-BASIC/multifactorial.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
print "Degree " + "|" + " Multifactorials 1 to 10" + nl
|
||||
print copy("-", 52) + nl
|
||||
for d = 1 to 5
|
||||
print "" + d + " " + "| "
|
||||
for n = 1 to 10
|
||||
print "" + multiFact(n, d) + " ";
|
||||
next
|
||||
print
|
||||
next
|
||||
|
||||
function multiFact(n,degree)
|
||||
fact = 1
|
||||
for i = n to 2 step -degree
|
||||
fact = fact * i
|
||||
next
|
||||
multiFact = fact
|
||||
end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue