but i keep getting WA...
Code: Select all
#include <stdio.h>
main() {
long a,b,i,j;int k,n;
scanf("%ld %ld",&a,&b);k = 0;
while (a!=0 || b!=0){
n = 0;k++;if(k!=1)printf("\n");
for(i=1;i*i<a;i++);
for(j=i;j*j<=b;j++)n++;
printf("%d",n);
scanf("%ld %ld",&a,&b);
}
return 0;
}
and even after send submission 55 times,i can't solve anything...
I would really appreciate it,if someone could help me and tell me what's wrong...THANK YOU!!