TOPIC

Resolvido - Python

RhuanGonzaga asked 1 year ago

x,y = map(float,input().split())

if x > 0 and y > 0:
    print("Q1")
elif x < 0 and y > 0:
    print("Q2")
elif x < 0 and y < 0:
    print("Q3")
elif x > 0 and y < 0:
    print("Q4")
elif x==0 and y == 0:
    print("Origem")
elif x == 0:
    print("Eixo Y")
else:
    print("Eixo X")

Remember not post solutions. Your post may be reviewed by our moderators.

  • JorgeWillian replied 1 year ago

    Até que enfimm!!! Funcionou aqui, mas não faz sentido, os eixos estão invertidos não estão?