递归算法
时间:2014-03-09 09:45:34
收藏:0
阅读:407
1
2
3
4
5
6
7
8
9
10
11 |
static
void main() { Console.writeLine(Process1(100)); } public
static int process1( int
i) { if (i==0) return
0; return
process2(i-1)+i; } |
原文:http://www.cnblogs.com/kuugachen/p/3589413.html
评论(0)