題庫

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

下面虛擬碼的輸出結果為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

知識點:演算法初步

題型:選擇題