LINUKS BLOG

Make progress is the topic for ever...

My Photo
Name:
Location: China

It's a fans of computer/ Computer is my favorite/ Making progress is the topic for ever...

Monday, March 12, 2007

Recursion


还是没有理解递归的真谛.

static long fib(int n){
if(n>2) return n;
return fib(n-1)+fib(n-2);
}

0 Comments:

Post a Comment

<< Home