Fibonacci n-th
Computer Mathematics
Easy
3 views
Problem Description
Compute the n-th Fibonacci number (0-indexed).
Input Format
One integer n.
Output Format
One integer.
Official Solution
Iterate: a=0,b=1 repeat n times: (a,b)=(b,a+b). Output a.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!