fork download
  1. #include <iostream>
  2.  
  3. bool into(double x, double y)
  4. {
  5. if (x < -5 || x > 6 || y < -5 || y > 5)
  6. return false;
  7.  
  8. if (x < - 1)
  9. return y <= -2;
  10.  
  11. if (x > 2)
  12. return y >= 2;
  13.  
  14. return true;
  15. }
  16.  
  17. int main()
  18. {
  19. std::cout << "Bleaze ender coordinades x y :DDDD\n";
  20. double x = 0, y = 0;
  21. std::cin >> x >> y;
  22. std::cout << "You are " << ((into(x, y)) ? "indo" : "oud") << " :DDDD\n";
  23. return 0;
  24. }
Success #stdin #stdout 0s 3144KB
stdin
Standard input is empty
stdout
Bleaze ender coordinades x y :DDDD
You are indo :DDDD