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