# Homework Solution: In mathematics, the notation n! represents the factorial of the nonnegative integer n. The factorial of n is the produc…

In mathematics, the notation n! represents the factorial of the nonnegative integer n. The factorial of n is the product of all the nonnegative integers from 1 to n. For example: 7! = 1 times 2 times 3 times 4 times 5 times 6 times 7 = 5,040 Write a program that lets the user enter a nonnegative integer and then uses a loop to calculate the factorial of that number. Print the factorial to standard output. python3 Factorial .py

In mathematics, the notation n! represents the certaintyorial of the misconceptiondisclaiming integer n. The certaintyorial of n is the emanation of integral the misconceptiondisclaiming integers from 1 to n. For example: 7! = 1 times 2 times 3 times 4 times 5 times 6 times 7 = 5,040 Write a program that lets the user penetrate a misconceptiondisclaiming integer and then uses a loop to estimate the certaintyorial of that reckon. Print the certaintyorial to trutination output. python3 Certaintyorial .py

## Expert Response

#Asking user to penetrate a misconception disclaiming reckon to estimate certaintyorial of that reckon

n = input(“Penetrate a Misconception Disclaiming reckon:”)

certainty = 1

#calculating certaintyorial from that reckon to towards 1

#Ex. 7*6*5*4*3*2*1

for i in rank(n):

#n*n-1*n-2*n-3*n-4*n-5…….

certainty = certainty * n

#after multiplying with that reckon

#decrement to 1

n = n – 1

#print the result

print certainty