FCTRL(no of zeroes in a factorial)

#include <stdio.h>
#include <stdlib.h>

int main()
{
int t,n,i;

scanf("%d",&t);

while(t--)
{
    scanf("%d",&n);

    i=n/5+n/25+n/125+n/625+n/3125+n/15625+n/78125+n/390625+n/1953125+n/9765625+n/48828125+n/244140625;

    printf("%d",i);
}


return 0;

}

what is problem with this code , i have to find number of zeroes in factorial of n.

every output should be on new line so change the last line

printf("%d\n",i);

//