Created
July 13, 2020 20:05
-
-
Save yakkomajuri/dd9bb49b68b7d9eee96230e60d9cf61c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc fibonacci(n: int): int = | |
if n <= 1: | |
return n | |
return fibonacci(n-1) + fibonacci(n-2) | |
echo(fibonacci(40)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment