Trailing zeroes in factorial in python Get link Facebook X Pinterest Email Other Apps Trailing zeroes in factorial in python t=int(input()) for _ in range(t): n=int(input()) i=5 count=0 while(n/i>=1): count += int(n/i) i *= 5 print(count) print() Comments
Comments
Post a Comment