C program to find factorial of a number using non-recursive function
Today i am going to cover a simple program to find factorial of a number.To move further with program let quickly understand the factorial.
Factorial is nothing but multiplication of all the numbers that comes before that number.For example factorial of 5 is -
5*4*3*2*1 = 120.
Recursive function - If function calling itself,than this is a recursion.
We are using non-recursion method to find factorial of a number.
Output :
Enter any number
5
The factorial of a given number using is 120
Above program will take the input from user and calculate the factorial of it.To calculate factorial of a number using recursion use below link -
http://www.codibucket.com/2016/08/c-program-to-find-factorial-of-number_28.html
Hope you like this post.Please provide your feedback.
Thanks.
C program to find factorial of a number using non-recursive function
Reviewed by CodiBucket
on
02:32
Rating:
No comments: