35. 有一個函式 Compute 定義如下:
int Compute (int x )
{
if (x<1)
return (1);
else if (x=1)
return (3);
else
return (5*Compute(x-1)-6*Compute(x-2));
}
當執行Compute(4)時,其結果為何?

(A)9
(B)81
(C)195
(D)211

答案:登入後查看
統計: A(10), B(88), C(17), D(7), E(0) #437103

詳解 (共 2 筆)

#2431764
假設 Compute ( )=用 數學函...
(共 456 字,隱藏中)
前往觀看
10
0
#3426927
c(0)=1;c(1)=3;c(2)=5...
(共 103 字,隱藏中)
前往觀看
1
0