所以我用do循环创建这个乘法表。我只是无法弄清楚如何将时间表打印到表格上的标签上。如果我在循环之外添加一些单词,它将显示正常但不在循环内。他们是一种在每次循环迭代时发布我想要的结果的方法吗?
Dim time As Integer
Dim userNum As Integer
Dim i As Integer = 1
lblTable.Text = "Do Loop: " & vbNewLine
Do Until i <= 10
userNum = Integer.Parse(txtNumber.Text)
If i <= 10 Then
time = userNum * i
lblTable.Text = userNum & " * " & i & " = " & time & vbNewLine
End If
i += 1
Loop