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
7
Task/Fibonacci-sequence/Ring/fibonacci-sequence.ring
Normal file
7
Task/Fibonacci-sequence/Ring/fibonacci-sequence.ring
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
give n
|
||||
x = fib(n)
|
||||
see n + " Fibonacci is : " + x
|
||||
|
||||
func fib nr if nr = 0 return 0 ok
|
||||
if nr = 1 return 1 ok
|
||||
if nr > 1 return fib(nr-1) + fib(nr-2) ok
|
||||
Loading…
Add table
Add a link
Reference in a new issue