Last Digit of fibonacci number - MATLAB Cody - MATLAB Central

Problem 46090. Last Digit of fibonacci number

Difficulty:Rate
Given a number n, find last digit of nth Fibonacci number
For example, for n=35,
F(35) = 9227465
so, ans=5.

Solution Stats

29.21% Correct | 70.79% Incorrect
Last Solution submitted on Jul 26, 2024

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers26

Suggested Problems

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!