nAssume that k is declared as an Integer. The loop should iterate until -1 is input.
Do While k <> -1
InputBox(“Enter a number -1 to quit:”, VB6)
Loop
Dim k As Integer = 0
Do While k <> -1
k = InputBox("Enter a number -1 to quit:", VB6)
Loop
Comments
Leave a comment