Skip to content

Instantly share code, notes, and snippets.

@joest67
Created September 17, 2014 03:18
Show Gist options
  • Save joest67/bfb4cbbb765573324ece to your computer and use it in GitHub Desktop.
Save joest67/bfb4cbbb765573324ece to your computer and use it in GitHub Desktop.
get zero count of factorials n.
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