In this tutorial, we’ll learn How can you write a pseudocode for a factorial number.
Pseudocode for Factorial of a number :
Step 1: Declare N and F as integer variable.
Step 2: Initialize F=1.
Step 2: Enter the value of N.
Step 3: Check whether N>0, if not then F=1.
Step 4: If yes then, F=F*N
Step 5: Decrease the value of N by 1 .
Step 6: Repeat step 4 and 5 until N=0.
Step 7: Now print the value of F.
The value of F will be the factorial of N(number).