rishat06

2_4(b)

Sep 16th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | Source Code | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     setlocale(0, "");
  6.     int dM, dN;
  7.    
  8.     cout << "Введите дату!" << endl;
  9.     cout << "День месяца: ";
  10.     cin >> dM;
  11.     cout << "Номер дня в неделе: ";
  12.     cin >> dN;
  13.    
  14.     if (dM == 13 && dN == 5) {
  15.         cout << "Неудачный день" << endl;
  16.     }
  17.     else if (dM == 13 && dN == 2) {
  18.         cout << "Неудачный день" << endl;
  19.     }
  20.     else if (dM == 17 && dN == 5) {
  21.         cout << "Неудачный день" << endl;
  22.     }
  23.    
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment