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
15
Task/Left-factorials/Ring/left-factorials.ring
Normal file
15
Task/Left-factorials/Ring/left-factorials.ring
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
a = leftFact(0,10,1)
|
||||
see "" + a + nl
|
||||
|
||||
func leftFact f,t,s
|
||||
see "------ From " + f + " --To -> " + t +" Step " + s + " -------" + nl
|
||||
for i = f to t step s
|
||||
leftFact = 1
|
||||
fct = 1
|
||||
for j = 1 to i - 1
|
||||
fct = fct * j
|
||||
leftFact = leftFact + fct
|
||||
next
|
||||
if i >= 1000 see "" + i + " " + len(string(leftFact)) + " digits" + nl
|
||||
else see "" + i + " " + leftFact + nl ok
|
||||
next
|
||||
Loading…
Add table
Add a link
Reference in a new issue