Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- main()
- {
- int a,b,i,c,count;
- while(scanf("%d%d",&a,&b)!=EOF)
- {
- count=0;
- for(i=a;i<b;i++)
- {
- c=i*i;
- if(c<=b){
- count++;
- }
- else
- count;
- }
- printf("%d\n",count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement