factorial computation

Factorial Computation


To compute factorial of a given number:

Input: Given the Number to be computed => N.

Output: Factorial of N is Fact.

Step 1: Input Number whose Factorial is to be computed: N.

Step 2: Initialize Fact =1.

Assign N = M.

Step 3: Check if M is greater than 1.

Yes: Assign product of Fact and M to Fact.

Decrement M. Repeat Step 3.

No: Output Factorial of N is Fact.

Step 4: Stop.

Programs

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad