fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4. float x,y;
  5. cin >>x>>y;
  6. if (x==0&&y==0){
  7. cout<<"Origem";
  8. }
  9. if(x==0&&y!=0){
  10. cout<<"Eixo Y";
  11. }
  12. if(x!=0&&y==0){
  13. cout<<"Eixo X";
  14. }
  15. if(x>0&&y>0){
  16. cout<<"Q1";
  17. }else if(x<0&&y>0){
  18. cout<<"Q2";
  19.  
  20. }else if(x<0&&y<0){
  21. cout<<"Q3";
  22. }else if(x>0&&y<0){
  23. cout<<"Q4";
  24. }
  25.  
  26. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Q2