+ 1
Factorial of a number
Do the factorial of a number using a recursive function
3 ответов
+ 2
int fact(int num) {
if(num>1) {
return num*fact(num-1);
}else if(num==1){
return 1;
}
+ 2
My take in Java
https://code.sololearn.com/cDO15j6FTfpn/?ref=app