You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while True: # 더 깔끔한 코드를 만드려면 n<=0 이라는 조건 만들면 됨
if n <= 0: # 0이하 입력 시 종료
break # 무한 루프 탈출
n = int(input("양의 정수 입력 (0이하 입력시 종료) : "))
if n <= 0: # 0이하 입력 시 종료
break # 무한 루프 탈출