Advertisement
VergeoPaw

1041

Sep 19th, 2021
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. x,y = input().split()
  2. x = float(x)
  3. y = float(y)
  4. if x > 0 and y > 0 :
  5.     print("Q1")
  6. elif x > 0 and y < 0 :
  7.     print("Q4")
  8. elif x < 0 and y > 0 :
  9.     print("Q2")
  10. elif x < 0 and y < 0 :
  11.     print("Q3")
  12. elif x == 0 and y!=0:
  13.     print("Eixo Y")
  14. elif y == 0 and x != 0:
  15.     print("Eixo X")
  16. elif x == 0 and y == 0 :
  17.     print("Origem")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement