Advertisement
Bassel_11

Untitled

Dec 4th, 2021
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 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.  
  14.     cout<<"Origem";}
  15.  
  16.     else if (X>0 && Y>0)
  17.     {
  18.     cout<<"Q1";
  19.  
  20.     }else if (X<0 && Y>0)
  21.     {
  22.  
  23.     cout<<"Q2";}
  24.  
  25.     else if (X<0 && Y<0)
  26.     {
  27.  
  28.     cout<<"Q3";}
  29.  
  30.     else if (X>0 && Y<0)
  31.     {
  32.  
  33.     cout<<"Q4";}
  34.  
  35.     else if (X!=0 && Y==00)
  36.     {
  37.  
  38.     cout<<"Exio X";}
  39.  
  40.     else if (X==0 && Y!=0)
  41.     {
  42.  
  43.     cout<<"Eixo Y";}
  44.  
  45.  
  46.     return 0;
  47. }
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement