big Factorial - CSharp System

CSharp examples for System:Math Number

Description

big Factorial

Demo Code


using System.Numerics;
using System.Collections.Generic;
using System.Collections;
using System;/*from  ww  w. j a  va 2 s  . com*/

public class Main{
        public static BigInteger bigFactorial(int i)
        {
            if (i <= 1)
                return 1;
            return i * bigFactorial(i - 1);
        }
}

Related Tutorials