Bob103

Не работает,на границе

Sep 30th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. float x, y;
  5. int main()
  6. {
  7. cout << "Input x" << endl;
  8. cout << "Input y" << endl;
  9. cin >> x;
  10. cin >> y;
  11. if (y < abs(y) && (pow(x, 2) + pow(y, 2)) < 100){
  12. cout << "V oblasti" << endl;
  13. }
  14. else if (y> abs(y) && pow(x, 2) + pow(y, 2) == 100){
  15. cout << "Na granice" << endl;
  16. }
  17. else cout << "Za predelami" << endl;
  18. system("pause");
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment