num = int(input("Enter a number to find factorial: ")) mul = 1 for x in range(1, num+1): mul *= x print("Factorial of", num, "=", mul)