Answer:
N = int(input("Enter a number: "))
total = N
for i in range(N-1, 1, -1):
total *= i
print(total)
Explanation:
Ask the user for the input, N
Set the total N at the beginning
Create a for loop that iterates from N-1 to 1 inclusively. Inside the loop, multiply each number in that range and add the result to the total.
When the loop is done, print the total to see the result