hactoberfest_contribution_2022 icon indicating copy to clipboard operation
hactoberfest_contribution_2022 copied to clipboard

Count trailing zeroes in factorial of a number

Open Sachindrck opened this issue 2 years ago • 1 comments

Given an integer n, write a function that returns count of trailing zeroes in n!. Examples :

Input: n = 5 Output: 1 Factorial of 5 is 120 which has one trailing 0.

Input: n = 20 Output: 4 Factorial of 20 is 2432902008176640000 which has 4 trailing zeroes.

Sachindrck avatar Oct 07 '22 16:10 Sachindrck

Hey I'd like to work on this, can you please assign it to me.

Nandini-singh05 avatar Oct 07 '22 20:10 Nandini-singh05