Computer Science, asked by Yogesh6972, 6 months ago

2) Write a pseudo code to find the factorial
of a given number?

Answers

Answered by Snehpriyanshu
7

Explanation:

Step-by-step explanation:

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.

Similar questions