以下伪代码的结果应该是什么:
将计数器初始化为 10
计数器 < 100 时执行
显示计数器乘以 2
将 10 添加到计数器
结束循环
我在想:20、60、140
这是我的代码:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim multiplied As Integer
Dim counter As Integer = 10
Do While counter < 100
multiplied = counter * 2
Label1.Text = Label1.Text & ControlChars.NewLine & multiplied.ToString
counter = multiplied + 10
Loop
End Sub
多谢你们!!