#include <iostream>
using namespace std;
void findDayOfWeek(int day) {
switch (day) {
case 1:
cout << "Понедельник";
break;
case 2:
cout << "Вторник";
case 3:
cout << "Среда";
case 4:
cout << "Четверг";
case 5:
cout << "Пятница";
case 6:
cout << "Суббота";
case 7:
cout << "Воскресенье";
default:
findDayOfWeek(day - 7);
}
int main() {
setlocale(0, "RU");
int day;
cin >> day;
findDayOfWeek(day);
return 0;
#include <iostream>
using namespace std;
void findDayOfWeek(int day) {
switch (day) {
case 1:
cout << "Понедельник";
break;
case 2:
cout << "Вторник";
break;
case 3:
cout << "Среда";
break;
case 4:
cout << "Четверг";
break;
case 5:
cout << "Пятница";
break;
case 6:
cout << "Суббота";
break;
case 7:
cout << "Воскресенье";
break;
default:
findDayOfWeek(day - 7);
}
}
int main() {
setlocale(0, "RU");
int day;
cin >> day;
findDayOfWeek(day);
return 0;
}