[백준14681_파이썬(python)] - 사분면 고르기

경이·2021년 6월 22일
0

🔴 문제

사분면 고르기


🟡 Sol

x = int(input())
y = int(input())

if(x>0 and y>0):
    print("1")
elif(x<0 and y>0):
    print("2")
elif(x<0 and y<0):
    print("3")
else:
    print("4")

🟢 풀이

if - elif 문 사용


🔵 Ref

profile
이사중입니다!🌟https://velog.io/@devkyoung2

0개의 댓글

관련 채용 정보