这个很容易啊n=k(k-1)动下脑筋 我马上要上课 不多说咯
#include<iostream>using std::cout;using std::endl;
unsigned Recursion(unsigned n){ if(n == 1) return n; return n * Recursion(n-1);}
int main(){ unsigned n = 6; cout<<Recursion(n)<<endl;
return 0;}
简单的演示一下
[此贴子已经被作者于2007-3-30 12:45:08编辑过]