Iterative algorithm for factorial
Answers
Answered by
1
Answer:
The factorial of a non-negative integer n is the product of all positive integers less than or equal to n. ... The iterative version simply use a for or a while loop to calculate the product of all positive integers less than equal to n.
Similar questions