看板 TransCSI 關於我們 聯絡資訊
given the following function, what is the value of Funny(4) public static int Funny(int n){ if(n==1) return 1; if(n==2) return 2; else return Funny(n-1)+Funny(n-2)+3; } A.6 B.7 C.8 D.9 E.10 我算出來是11....是答案有錯嗎= =a還是我算錯呢T^T -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.229.169.99
stator:11 06/22 07:33
TonyJih:11 = =...剛才耍笨了 06/22 11:09
Pix911:8? 07/15 20:02
Pix911:f4=f3+f2+3=f2+f1+3+f2+3=2+1+3+2+3=11 唉呀..我也耍笨了 07/15 20:04