Обзор С++
Контрольная работа - Педагогика
Другие контрольные работы по предмету Педагогика
t <<"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;
}
else if (n>28) if (n<32)
switch (n)
{
case 29:cout <<"Sunday"<<endl; break;
case 30:cout <<"Monday"<<endl; break;
case 31:cout <<"Tuesday"<<endl; break;
default:cout<<"Mistake";
}
getch();
return 0;
}
//--------------------------------------------------------------------------