int a;
cout << "Enter number of day:";
cin >> a;
switch (a) {
case 1:
system("pause");
cout << "Enter number of day:";
cin >> a;
switch (a) {
case 1:
cout << "Monday" << endl;case 2:
break;
cout << "Tuesday" << endl;case 3:
break;
cout << "Wednesday" << endl;case 4:
break;
cout << "Thursday" << endl;case 5:
break;
cout << "Friday" << endl;case 6:
break;
cout << "Saturday" << endl;case 7:
break;
cout << "Sunday" << endl;default:
break;
cout << "Error!" << endl;}
break;
system("pause");
Комментариев нет:
Отправить комментарий