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