Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

FCTRL:Getting Wa

$
0
0
#include<stdio.h>
#include<math.h>
int main()
{
unsigned long int k,n,i,sum=0,t;
   float z;
   scanf("%ld",&t);
   while(t>0)
   {
     i=1;
     sum=0;
      scanf("%ld",&n);
     while(pow(5,i)<=n)
   {
       k=i;
       z=(n/pow(5,k));
       sum=(sum+z);
       i++;
   }
  printf("%ld", sum);
  t--;
}
return 0;
}

It Gives me error while it is working for all test cases plz help me


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>