elynx

f57

Sep 26th, 2020
1,058
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4.     int a;
  5.     cin >> a;
  6.     switch (a) {
  7.     case 1:
  8.     case 2:
  9.     case 12:
  10.         cout << "winter";
  11.         break;
  12.     case 3:
  13.     case 4:
  14.     case 5:
  15.         cout << "spring";
  16.         break;
  17.     case 6:
  18.     case 7:
  19.     case 8:
  20.         cout << "summer";
  21.         break;
  22.     case 9:
  23.     case 10:
  24.     case 11:
  25.         cout << "autumn";
  26.         break;
  27.     default:
  28.         cout << "NO";
  29.         break;
  30.     }
  31. }
RAW Paste Data