Calculate Factorial - Java Quiz Question


Write a program to calculate factorial of the given number.



class Factorial
{
    public static void main(String s[])
    {
        System.out.println("Factorial of 5 is " + factorial(5));

    }


    public static int factorial(int number)
    {
        int result = 1;
        return result;
    }

}