Factorial - Online Code

Description

To find factorial of a number

Source Code

#include<stdio.h>
int factorial(int x);
main()
{
int n,i;
printf("enter the number ");
scanf("%d",&n);
i=factorial(n);
printf("\nfactorial is \t:\t%d\n",i);
}
int factorial(int x)
{
int f
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

kamlesh rajpoot on 2009-03-05 09:56:04 wrote,

its nice for the students, i think...........