i am new to pointers and i solved a problem factrl in easy section without help of pointers after learning a little bit i tried to solve it using pointers it seems to run fine on my system but when i am submitting it is saying wrong answer please help me

```
#include<stdio.h>
#include<math.h>
void zeros(int*);
int noi(int*);
int n,t,i;
int main()
{
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%d",&n);
zeros(&n);
}
return 0;
}
void zeros(int *n)
{
int j=1,i,sum=0;
i=noi(&n);
for(j=1;j<=i;j++)
{
sum=sum+*n/pow(5,j);
}
printf("%d\n",sum);
}
int noi(int *x)
{
int i=1;
while(*x/pow(5,i)>=1){
i++;
}
return i-1;
}
```

and please guide me how can i improve the efficiency of this program following the same logic