Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. int a,b,i,count=0;
  6. scanf("%d %d",&a,&b);
  7. for(i=a;i<=b;i++)
  8. {
  9. if(a==0 && b==0){
  10. printf(" ");
  11. return 0;
  12. }
  13. else{
  14. if(ceil(sqrt(i))==floor(sqrt(i)))
  15. count++;
  16. }
  17. }
  18. printf("%d\n",count);
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement