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

來源:國語幫 6.3K

問題詳情:

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

知識點:算法初步

題型:選擇題

熱門標籤