Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- using namespace std;
- int main()
- {
- float x, y;
- cout << "Write x" << endl;
- cin >> x;
- cout << "Write y" << endl;
- cin >> y;
- if (fabs(x)<10 && fabs(y)<5 && fabs(x)>0 && fabs(y)>0)
- cout << "Yes" << endl;
- else if (fabs(x)>10 || fabs(y)>5)
- cout << "No" << endl;
- else
- cout << "On border" << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement