Question# 5 - 120 - example# 5 * 4 * 3 * 2 * 1# user input - ??output - factorial of user input Answernum = int(input("Enter the number: "))output = 1while num >= 1: output *= num num -= 1print(output)
Post a Comment