Answer:
The program is as follows:
num = int(input("Number: "))
fact = 1
for i in range(1,num+1):
fact*=i
print(fact)
Step-by-step explanation:
This gets integer input from the user
num = int(input("Number: "))
This initializes factorial to 1
fact = 1
The following iteration calculates the factorial of the integer input
for i in range(1,num+1):
fact*=i
This prints the calculated factorial
print(fact)