#include int jc(int n){ int i,sum=1; for (i=1;i<=n;i++) sum*=i; return sum;}int psum(int n){ if (n==1) { return 1; } else { return psum(n-1)+jc(n); }}int main(){ int n; cout<<"Input N:"; cin>>n; cout<} =====psum就是递归写的