**Problem statement**: https://www.codechef.com/LRNDSA01/problems/FCTRL

**Solution**: https://www.codechef.com/viewsolution/34721362

**Logic**: n! = n/5 + n/25 + n/125 … where n is the integer for which we are calculating the number of trailing zeros.

**Status**: Wrong answer

I would like to know where I went wrong.

Code:

`num_list = []`

`T = int(input())`

`for x in range(T):`

```
num_list.append(int(input().strip()))
def Z(N):
num_zeros = 0
i = 1
for i in range(i,N):
if 5**i < N:
num_zeros += N//(5**i)
else:
break
print(num_zeros)
```

`for N in num_list:`

`if N in range( 1,1000000000):`

```
Z(N)
```

`else:`

`print("enter number in the range [1,1000000000]") `