Лабораторная работа: Обзор С++
case 8:cout <<"Sunday"<<endl; break;
case 9:cout <<"Monday"<<endl; break;
case 10:cout <<"Tuesday"<<endl; break;
case 11:cout <<"Wednesday"<<endl; break;
case 12:cout <<"Thursday"<<endl; break;
case 13:cout <<"Friday"<<endl; break;
case 14:cout <<"Saturday"<<endl; break;
}
else if (n>14) if (n<22)
switch (n)
{
case 15:cout <<"Sunday"<<endl; break;
case 16:cout <<"Monday"<<endl; break;
case 17:cout <<"Tuesday"<<endl; break;
case 18:cout <<"Wednesday"<<endl; break;
case 19:cout <<"Thursday"<<endl; break;
case 20:cout <<"Friday"<<endl; break;
case 21:cout <<"Saturday"<<endl; break;
}
else if (n>21) if (n<29)
switch (n)
{
case 22:cout <<"Sunday"<<endl; break;
case 23:cout <<"Monday"<<endl; break;
case 24:cout <<"Tuesday"<<endl; break;
case 25:cout <<"Wednesday"<<endl; break;
case 26:cout <<"Thursday"<<endl; break;
case 27:cout <<"Friday"<<endl; break;
case 28:cout <<"Saturday"<<endl; break;