Answers for "factorial in java using recursion long numbers"

1

factorial of a number using recursion in java

public int factorial(int num) {
        if (num == 0)
            return 1;
        else
            return (num * factorial(num - 1));
    }
Posted by: Guest on October-15-2021

Code answers related to "factorial in java using recursion long numbers"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language