n = int(input("Enter a number: "))factorial = 1for i in range(1, n + 1): factorial *= iprint("Factorial is:", factorial)