📅  最后修改于: 2022-03-11 14:59:46.758000             🧑  作者: Mango
/*This funcion will get the factorial
of a number with recursivity */
//C++
int factorial(int n){
if(n==0){//Base Case
n=1;
}else{//Gnereal Case
n= n+factorial(n-1);
}
}