Q. Write a pseudo-code to calculate the factorial of a number (Hint: Factorial of 5, written as 5! = 5 X 4 X 3 X 2 x 1 ).


Answer :-

Input number
Set Factorial = 1
For i in range ( 1, number + 1) :
       Factorial *= I

Print factorial

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post