![]() Within the user-defined function of this program, long CalFct(int Num) ![]() Printf("\nFactorial of %d = %d\n", Num, Fact) Printf("Factorial of %d = %d\n", Nm, Fc) I = 2, Factorial= 1 and Number= 4 – It means (2 Printf("\n Please Enter any number to Find Factorial\n") By using this value, this C program finds the Factorial of a number using For Loop. This factorial program allows the user to enter any integer value. The Factorial is the product of all numbers, which are less than or equal to that number, and greater than 0.įor example, Factorial of 5 is represented as 5! = 5 *4 * 3 * 2 * 1 = 120 C Program to Find Factorial of a Number Using For Loop ![]() How to write a C Program to find Factorial of a Number using For Loop, While Loop, Pointers, Functions, Call by Reference, and Recursion.
0 Comments
Leave a Reply. |