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
4
Task/Factorial/Lingo/factorial-1.lingo
Normal file
4
Task/Factorial/Lingo/factorial-1.lingo
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
on fact (n)
|
||||
if n<=1 then return 1
|
||||
return n * fact(n-1)
|
||||
end
|
||||
7
Task/Factorial/Lingo/factorial-2.lingo
Normal file
7
Task/Factorial/Lingo/factorial-2.lingo
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
on fact (n)
|
||||
res = 1
|
||||
repeat with i = 2 to n
|
||||
res = res*i
|
||||
end repeat
|
||||
return res
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue