Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- float x, y;
- int main()
- {
- cout << "Input x" << endl;
- cout << "Input y" << endl;
- cin >> x;
- cin >> y;
- if (y < abs(y) && (pow(x, 2) + pow(y, 2)) < 100){
- cout << "V oblasti" << endl;
- }
- else if (y> abs(y) && pow(x, 2) + pow(y, 2) == 100){
- cout << "Na granice" << endl;
- }
- else cout << "Za predelami" << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment