Answers for "recursive"

0

recursive

private static long factorial(int n){  
	if (n == 1)
    	return 1;    
    else
		return n * factorial(n-1);
        }
Posted by: Guest on April-21-2021

Browse Popular Code Answers by Language