For problem FCTRl used the following code and I get wrong answer on ideone. However I get the expected output in my compiler.
int no_of_zeroes(int n){
int v=0;
int i=1;
do{
v+= n/(pow(5,i));
i++;
}while(pow(5,i) return v;
}
int main(){
int t;
cin>>t;
for (int i=0;i int n; cin>>n;
cout<}
return 0;
}
created
last reply
- 11
replies
- 1.2k
views
- 2
users
- 1
like
- 1
link