here is my code in python 3.1.2 to find the number of trailing zeroes in the factorial of a number
max=(int)(input()) for i in range(max): sum=0 n=(int)(input()) while n!=0: sum=sum+(int)(n/5) n=n/5 print(sum)
first i got a TLE error then I wrote
which i saw in one of the discussions.
Then i started gettting the nzec error…please help…