帮忙看一下这个代码哪里有错
怎样判断呢
要怎样修改?
不能用简单数据类型保存阶乘:#include #include #include #include using namespace std;int ans[10005];int main(){ int n; cin >> n; if(n == 0) cout =1;l--) cout << ans[l]; cout << endl;}}
我这个代码输入34之前的输出结果是对的,之后的输出为0
递归求阶乘