Skip to content

Commit

Permalink
Fibonacci
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Dec 5, 2017
1 parent da8de9c commit 1016df3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/silly/fib.tig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
let
function fib(n:int):int =
if n = 0
then
0
else
if n = 1
then
1
else
fib(n-1) + fib(n-2)
in
print_int(fib(41)); 0
end

0 comments on commit 1016df3

Please sign in to comment.