Advertisement
nikitaxe132

Untitled

Sep 24th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main() {
  4.     using namespace std;
  5.     cout << "Введите координату x";
  6.     double x;
  7.     cin >> x;
  8.     cout << "Введите координату y";
  9.     double y;
  10.     cin >> y;
  11.     if ((x + y <= 1) && (2 * x - y <= 1) && (y>=0)) {
  12.         cout << ("Точка M принадлежит множеству D");
  13.     }
  14.     else {
  15.         cout << ("Точка M не принадлежит множеству D");
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement