Created
September 17, 2014 03:18
-
-
Save joest67/bfb4cbbb765573324ece to your computer and use it in GitHub Desktop.
get zero count of factorials n.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def last_zero_num(n): | |
count = 0 | |
while n: | |
count += n / 5 | |
n = n / 5 | |
return count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment