# This program computes the factorial of # a non-negative integer n = input("Enter a non-negative integer: ") fact = 1 for i in range(1,n+1): fact = fact*i print n, "! =", fact