Cody

Problem 44068. The number of trailing zero digit of a factorial

Solution 2713728

Submitted on 20 Jul 2020 by Highphi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
n = 1; ct_correct = 0; assert(isequal(powerTenInFactorial(n),ct_correct))

2   Pass
n = 9; ct_correct = 1; assert(isequal(powerTenInFactorial(n),ct_correct))

3   Pass
n = 27; ct_correct = 6; assert(isequal(powerTenInFactorial(n),ct_correct))

4   Pass
n = 626; ct_correct = 156; assert(isequal(powerTenInFactorial(n),ct_correct))

5   Pass
n = 620; ct_correct = 152; assert(isequal(powerTenInFactorial(n),ct_correct))