Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <bits/stdc++.h>
- #include <cmath>
- using namespace std;
- #define ll long long
- void Aror()
- {
- ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
- #ifndef ONLINE_JUDGE
- freopen("inp.txt", "r", stdin);
- freopen("out.txt", "w", stdout);
- #endif
- }
- int main()
- {
- Aror();
- double x, y;
- cin >> x >> y;
- if (x == 0 && y == 0)
- {
- cout << "Origem"
- << "\n";
- }
- if (y == 0)
- {
- cout << "Eixo X"
- << "\n";
- }
- if (x == 0)
- {
- cout << "Eixo y"
- << "\n";
- }
- if (x > 0 && y > 0)
- {
- cout << "Q1"
- << "\n";
- }
- if (x > 0 && y < 0)
- {
- cout << "Q4"
- << "\n";
- }
- if (x < 0 && y < 0)
- {
- cout << "Q3"
- << "\n";
- }
- if (x < 0 && y > 0)
- {
- cout << "Q2"
- << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement