H10

Output the nth Fibonacci number.

Input: A positive integer n.

Output: The nth Fibonacci number, where F1=F2=1 and Fi=Fi-1+Fi-2

Examples:

1 ->1
7 ->13
13->233

Languages, by Score

Languages, by Name


Back to Hole List

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License