Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int M, N, Counter = 0;
- scanf("%d%d", M, N);
- if(M % 2 != 0){
- M++;
- }
- while(M <= N){
- Counter++;
- M = M + 2;
- }
- printf("%d", Counter);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement