编写一个求n!的函数,在主函数中的调用

编写一个求n!的函数,在主函数中的调用
2025-03-22 13:25:48
推荐回答(1个)
回答1:

int A(int n){
if(n==1)return 1;
else return n*A(n-1);
}