摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 int jc(int a) 4 { 5 if(a<=2) 6 { 7 return a; 8 } 9 return jc(a-1)*a; 10 } 11 12 int jch(int a) 13 阅读全文
posted @ 2024-07-10 15:57 hanxuyao 阅读(12) 评论(0) 推荐(0)
摘要: /*#include <bits/stdc++.h> using namespace std; int main() { int n,sum=1; cin >> n; int a=n; for(int i=n-1;i>0;i--) { a=a*i; } cout<<a; return 0; }*/ 阅读全文
posted @ 2024-07-10 15:39 hanxuyao 阅读(39) 评论(0) 推荐(0)