Advertisements
Advertisements
Question
Write pseudocode to calculate the factorial of a number (Hint: Factorial of 5, written as 5! = 5 × 4 × 3 × 2 × 1).
Short/Brief Note
Advertisements
Solution
Input number
Set Factorial = 1
For i in range ( 1, number + 1) :
Factorial *= I
Print factorialshaalaa.com
Is there an error in this question or solution?
