Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- float x,y;
- cin>>x>>y;
- if(x>0 && y>0)
- cout<<"Q1"<<endl;
- else if (x<0 && y > 0)
- cout<<"Q2"<<endl;
- else if (x<0 && y<0)
- cout<<"Q3"<<endl;
- else if(x > 0 and y < 0)
- cout<<"Q4"<<endl;
- else if(x==0 && y==0)
- cout<<"Origem"<<endl;
- else if (x==0)
- cout<<"Eixo Y"<<endl;
- else if (y==0)
- cout<<"Eixo X"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement