Wednesday, July 4, 2012

Factorial

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to do factorial problem in C. Take a look at the problem.

Problem: Write a program to calculate the factorial value of any integer entered through the keyboard.


Sample input   :   5
Sample Output  :  120


Solution:



We can also do this program by the following way..


Thank you all..:)


0 comments:

Post a Comment