인프런 커뮤니티 질문&답변
while 조건문
작성
·
187
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에는 ''가 들어가야 하는 이유가 이해가 안되서
질문 드립니다!
답변
답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!





