Given a number n, find last digit of nth Fibonacci number
For example, for n=35,
F(35) = 9227465
so, ans=5.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers30
Suggested Problems
-
14354 Solvers
-
Find the longest sequence of 1's in a binary sequence.
6843 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15817 Solvers
-
1295 Solvers
-
540 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!