C# Program to calculate the factorial.
public class Factorial
{
public long FactorialCalculate(long val)
{
return val == 1 ? val : val * FactorialCalculate(val - 1);
}
}
Monday, December 22, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment