Pseudocode to Calculate Factorial – Programming, Pseudocode Example, C# Programming Example
Pseudocode Examples

Pseudocode to Calculate Factorial

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).

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: