Skip to content

Commit

Permalink
Add fibonacci sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
stoeffn committed Feb 6, 2018
1 parent cc65ae9 commit 4896ab7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sample Code/fibonacci.pseudo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
algorithm fibonacci(int n): int:
if n ≦ 1 then
return n.
return fibonacci(n - 1) + fibonacci(n - 2).

0 comments on commit 4896ab7

Please sign in to comment.