( )6. 執行下列 Visual Basic 程式片段,輸出結果為何?
(A) 4
(B) 15
(C) 26
(D) 29
Dim S As Integer, K As Integer
K=1:S=0
While K < 6
If K < 4 Then
K=K+1
S=S+K
Else
K=K+2
S=S+K
End If
End While
Console.WriteLine(S)
答案:登入後查看
統計: 尚無統計資料
統計: 尚無統計資料