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