The factorial of a positive integer n is equal to 1*2*3*…n. You will learn to calculate the factorial of a number using for loop in this example. This program takes a positive integer from the user and computes factorial using for loop.

(Visited 16 times, 1 visits today)

Written by:

Leave a Reply

Your email address will not be published. Required fields are marked *