Advertisement
Josif_tepe

Untitled

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