Advertisement
Josif_tepe

Untitled

Mar 9th, 2023
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int main()
  5. {
  6.     int a, b, c;
  7.     cin >> a >> b >> c;
  8.    
  9.     int delitel = 0;
  10.     for(int i = a; i <= b; i++) {
  11.         if(i % 4 == c % 4) {
  12.             delitel++;
  13.         }
  14.     }
  15.     cout << delitel << endl;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement