# Write a Python function to find the number of zeros at the end of a factorial of a given positive number.

## Topic: Write a Python function to find the number of zeros at the end of a factorial of a given positive number.

Solution

def factendzero(n): x = n // 5 y = x while x > 0: x /= 5 y += int(x) return y

List all Python Programs