有如下程序: total = 0 For k = 1 To 3 If k> =1 Then part = 1 Elself k > = 2 Then part = 2 Elself k > =3 Then part = 3 Else part = 4 End If Print part; total = total + part Next k Print total 运行时输出的结果是 【14】 。
有如下程序: total = 0 For k = 1 To 3 If k> =1 Then part = 1 Elself k > = 2 Then part = 2 Elself k > =3 Then part = 3 Else part = 4 End If Print part; total = total + part Next k Print total 运行时输出的结果是 【14】 。
1