Advertisement
Josif_tepe

Untitled

Mar 9th, 2023
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int main()
  5. {
  6.     int n;
  7.     cin >> n;
  8.     switch(n) {
  9.         case 1:
  10.             cout << "1" << endl;
  11.             break;
  12.         case 2:
  13.             cout << "2" << endl;
  14.             break;
  15.         case 3:
  16.             cout << "3" << endl;
  17.             break;
  18.        
  19.         default:
  20.             cout << "NE" << endl;
  21.             break;
  22.     }
  23.     return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement