Advertisement
saira12tabassum19

Untitled

Jul 9th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. //problem no d
  2. #include<stdio.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(i%4==0)//divisible by 4
  10. count++;
  11. }
  12. printf("%d\n",count);
  13.  
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement