Problem 45251. Last non-zero digit
Given a number n, find the last non-zero digit of the factorial of that number. You need to take care of the large values of n.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers38
Suggested Problems
-
Swap the first and last columns
22447 Solvers
-
228 Solvers
-
Flip the vector from right to left
10602 Solvers
-
425 Solvers
-
64 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!