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
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
18
8

Problem Recent Solvers26

Suggested Problems

More from this Author165

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page