Anybody please give me programm to find factorial of an integer

unni krishnan.r's Avatar, Join Date: Apr 2010
Skilled contributor
Anybody please give me programm to find factorial of an integer Please help me
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Have you done anything?
0
ajit_pimg's Avatar, Join Date: Mar 2010
Go4Expert Member
visit this site
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
Code:
long int factorial(int n)
 {
  if (n<=1)
    return(1);
  else
    n=n*factorial(n-1);
    return(n);
 }
0
unni krishnan.r's Avatar, Join Date: Apr 2010
Skilled contributor
Quote:
Originally Posted by shabbir View Post
Have you done anything?
Studing not as expert as you
and