Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a;
- cin >> a;
- switch (a) {
- case 1:
- case 2:
- case 12:
- cout << "winter";
- break;
- case 3:
- case 4:
- case 5:
- cout << "spring";
- break;
- case 6:
- case 7:
- case 8:
- cout << "summer";
- break;
- case 9:
- case 10:
- case 11:
- cout << "autumn";
- break;
- default:
- cout << "NO";
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement