題庫

當前位置 /首頁/題庫 > /列表

下面僞代碼的輸出結果爲S←1ForIfrom1to9step2S←S+IEndforPrintSA.45   ...

問題詳情:

下面僞代碼的輸出結果爲S←1ForIfrom1to9step2S←S+IEndforPrintSA.45   ...

下面僞代碼的輸出結果爲

S← 1

For I from 1 to 9 step 2

S←S + I

End for

Print S

A. 45             B. 23                C. 25           D.26

【回答】

D

知識點:算法初步

題型:選擇題