Sachindrck / hactoberfest_contribution_2022

Create four pull request and win hacktoberfest swags!
GNU General Public License v3.0
25 stars 104 forks source link

Count trailing zeroes in factorial of a number #263

Open Sachindrck opened 2 years ago

Sachindrck commented 2 years ago

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.

Nandini-singh05 commented 2 years ago

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