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.

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2024 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz