Write algorithm that computes the factorial of a given input non-negative integer. - 0! = 1 - 3! = 3 * 2 * 1 = 6 - 6! = 720 - n! = n * (n-1)! if n > 0 = n * (n-1) * (n-2) * ... * 1
Write algorithm that computes the factorial of a given input non-negative integer.