Josif_tepe

Untitled

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