Advertisement
Josif_tepe

Untitled

Nov 26th, 2021
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n; // kolku denovi trael strajkot
  8.     cin >> n;
  9.     if (n <= 15)
  10.     {
  11.         cout << 0 << endl;
  12.     }
  13.     else if (n >= 16 and n <= 20)
  14.     {
  15.         cout << 1 << endl;
  16.     }
  17.     else if (n >= 21 and n <= 25)
  18.     {
  19.         cout << 2 << endl;
  20.     }
  21.     else {cout << 3 << endl;}
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement