Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
613 B
1
Indexable
#include <iostream>
using namespace std;

int main() {
	int key = 1;
	setlocale(LC_ALL, "Russian");
	while (key != 0) {
		cout << "Номер месяца (0 - выход): ";
		cin >> key;
		switch(key){
		case 1:
		case 2:
		case 12:
			cout << "Зима\n";
			break;
		case 3:
		case 4:
		case 5:
			cout << "Весна\n";
			break;
		case 6:
		case 7:
		case 8:
			cout << "Лето\n";
			break;
		case 9:
		case 10:
		case 11:
			cout << "Осень\n";
			break;
		case 0:
			cout << "Пока\n";
			break;
		default:
			cout << "Это че?\n";
			break;
		}
	}
}