4 lines
90 B
Text
4 lines
90 B
Text
public int factorial_rec(int n){
|
|
if(n>1) return n*factorial_rec(n-1);
|
|
else return 1;
|
|
}
|