[填空題] 設(shè)有以下函數(shù)過程: Functiofun(m As Integer)As Integer Dimk As Integer,sum As Integ
2021-07-20
[填空題] 設(shè)有以下函數(shù)過程: Functiofun(m As Integer)As Integer Dimk As Integer,sum As Integer sum=0 Fork=m To 1 Step-2 sum=sum+k Nextk fun=sum End Function 若在程序中用語句s=fun(10)調(diào)用此函數(shù),則s的值為______。
正確答案:30
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。