Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(0, "");
- int dM, dN;
- cout << "Введите дату!" << endl;
- cout << "День месяца: ";
- cin >> dM;
- cout << "Номер дня в неделе: ";
- cin >> dN;
- if (dM == 13 && dN == 5) {
- cout << "Неудачный день" << endl;
- }
- else if (dM == 13 && dN == 2) {
- cout << "Неудачный день" << endl;
- }
- else if (dM == 17 && dN == 5) {
- cout << "Неудачный день" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment