Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3. int M, N, Counter = 0;
  4. scanf("%d%d", M, N);
  5. if(M % 2 != 0){
  6. M++;
  7. }
  8. while(M <= N){
  9. Counter++;
  10. M = M + 2;
  11. }
  12. printf("%d", Counter);
  13. return 0;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement