Write an algorithm to find the Factorial of n numbers?
Write an
algorithm to find the Factorial of n numbers:-
Step 1 :
START
Step 2 :
Declare variables i = 1 , Factorial = 1 and N .
Step 3 :
Read the value of variable N.
Step 4 :
Repeat step until i = N.
Step 5 :
calculate Factorial = Factorial * i.
i=i+1
Step 6 :
Display Factorial
Step 7 :
STOP
![]() |
An algorithm to find the Factorial of n numbers? |
Comments
Post a Comment