Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
16
Task/Multifactorial/Ring/multifactorial.ring
Normal file
16
Task/Multifactorial/Ring/multifactorial.ring
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
see "Degree " + "|" + " Multifactorials 1 to 10" + nl
|
||||
see copy("-", 52) + nl
|
||||
for d = 1 to 5
|
||||
see "" + d + " " + "| "
|
||||
for n = 1 to 10
|
||||
see "" + multiFact(n, d) + " "
|
||||
next
|
||||
see nl
|
||||
next
|
||||
|
||||
func multiFact n, degree
|
||||
fact = 1
|
||||
for i = n to 2 step -degree
|
||||
fact = fact * i
|
||||
next
|
||||
return fact
|
||||
Loading…
Add table
Add a link
Reference in a new issue