One Response

  1. radit
    radit July 21, 2011 at 12:57 am | | Reply

    Hi Toto,

    In other situation, you can use recursive method to do factorial calculation:

    unsigned int factorial(unsigned int n)
    {
    if (n <= 1)
    return 1;
    else
    return n * factorial(n-1);
    }

Leave a Reply