josiftepe

Untitled

Jan 20th, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int x;
  7.     int y;
  8.     cin >> x;
  9.     cin >> y;
  10.     if((x - y < 0 and x - y < -2) or (x + y > 30 and x * y > 50)) {
  11.         cout << "DA" << endl;
  12.     }
  13.     else {
  14.         cout << "NE" << endl;
  15.     }
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment