Computer Science, asked by Nawang798, 8 months ago

Write a program to print the factorial for 6 using recursion. In JAVA

Answers

Answered by gaurav9737
0
Factorial Program using recursion in java

class FactorialExample2{static int factorial(int n){if (n == 0)return 1;else.return(n * factorial(n-1));

Similar questions