📜  vb.net 中的 while 循环 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:17.044000             🧑  作者: Mango

代码示例1
'While loops are used to run a section of code WHILE a condition is true

'EXANPLE: Add 1 to x while x is less than 10
Dim x As Integer = 1

Do While y < 5
    MsgBox(y)
    y = y + 1 'OR y += 1
Loop