㈠ java用遞歸編程求斐波那契數列第n項
套數學里的就是了 f(0) = 1, f(1) = 1, f(2) = 2, ...int fib(int i){ if( i < 2 ) return 1; // 遞歸結束的條件 return f(i -1) + f(i-2);}