Advertisement
Bassel_11

Q. Coordinates of a Point

Dec 4th, 2021
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. double X,Y;
  8.  
  9. cin>>X>>Y;
  10.  
  11. if (X>0 && Y>0)
  12. {
  13. cout<<"Q1";
  14.  
  15. }else if (X<0 && Y>0)
  16. {
  17.  
  18. cout<<"Q2";}
  19.  
  20. else if (X<0 && Y>0)
  21. {
  22.  
  23. cout<<"Q3";}
  24.  
  25. else if (X<0 && Y<0)
  26. {
  27.  
  28. cout<<"Q4";}
  29.  
  30. return 0;
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement