This article is about find factorial of a number.Before any discussion we should know what is factorial?
Factorial of a number=number!
Ex.factorial of 6!=6*5*4*3*2*1=120
factorial of 0!=1
Algorithm and flowchart:-In previous articles Algorithm of roots of polynomial equation and flowchart of roots of polynomial equation we discuss algorithm and flowchart of square roots of polynomial equation.I think you get some idea about algorithm and flowchart from previous articles.for more understanding about the concept we discuss factorial of a number.
Problem:Finding factorial of a number n
Step:2 Read a number n
write"factorial of negative numbers is not possible" and exit
(end of if statement)
write"factorial of 0=1" and exit
flowchart of factorial of a number n
I think you will get something from this.If there is any wrong concept then please highlight it.As no one is perfect.Thanks for visit...........stay in touch.