简单C++的狗2026-02-05 15:16:01发布于:浙江6阅读0回复0点赞递归 #include<iostream> using namespace std; int f(int x){ if(x==0){ return 1; } else{ return x*f(x-1); } } int main(){ int N; cin>>N; cout<<f(N); } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个