-
카테고리
-
세부 분야
프로그래밍 언어
-
해결 여부
미해결
while 조건문
20.09.17 14:00 작성 조회수 99
0
def main():
user_input = 999
while(user_input != 0):
user_input = input("Input a positive number : ")
if is_positive_number(user_input) == True:
factorial_value = get_factorial_value(user_input)
print(factorial_value)
elif user_input != '0':
print("Input again, Please")
elif user_input == '0':
print("Thank you for using this program")
user_input = 0
맨 위의 0은 ''가 들어가지 않는데
아래 두개의 0에는 ''가 들어가야 하는 이유가 이해가 안되서
질문 드립니다!
답변을 작성해보세요.
답변 0