#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Input number: ";
cin >> number;
switch(number)
case 1:
cout << "Monday";
break;
case 2:
cout << "Tuesday";
case 3:
cout << "Wednesday";
case 4:
cout << "Thursday";
case 5:
cout << "Friday";
case 6:
cout << "Saturday";
case 7:
cout << "Sunday";
default:
cout << "Input error!";
return 1;
}
return 0;
#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Input number: ";
cin >> number;
switch(number)
{
case 1:
cout << "Monday";
break;
case 2:
cout << "Tuesday";
break;
case 3:
cout << "Wednesday";
break;
case 4:
cout << "Thursday";
break;
case 5:
cout << "Friday";
break;
case 6:
cout << "Saturday";
break;
case 7:
cout << "Sunday";
break;
default:
cout << "Input error!";
return 1;
}
return 0;
}