#Jonathan Hudson #Student Number 12347890 #Date: 2021-05-03 # Compute n-factorial using a for loop # Read an input value from the user n = int(input("Enter a non-negative integer: ")) # Compute n-factorial result = 1 for i in range(1, n+1): result = result * i # Display the result print(n, "factorial is", result)