Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "Russian");
- const double r2 = 100; // Радиус умнож. на 2
- double x, y;
- cout << "Введите точку(x,y):" << endl;
- cin >> x >> y;
- if ((y == abs(x) && r2 >= pow(x, 2) + pow(y, 2)) || (r2 == pow(x, 2) + pow(y, 2) && y <= abs(x)))
- cout << "На границе";
- else if (y < abs(x) && r2 > pow(x, 2) + pow(y, 2))
- cout << "Да";
- else
- cout << "Нет";
- cout << endl;
- main();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement