Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- using namespace std;
- int main()
- {
- double x, y;
- cin >> x >> y;
- if (((x * x + y * y) < 25 * 25) && (y <= abs(x)) && (y <= 0)) {
- cout << "in space" << endl;
- }
- else if (((x * x + y * y) > 25 * 25) || (y > abs(x) || (y > 0))) {
- cout << "out of space" << endl;
- }
- else {
- cout << "on the border" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement