Answer to Question #195680 in Visual Basic for zack

Question #195680

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


1
Expert's answer
2021-05-21T10:52:39-0400
Dim k As Integer = 0
        Do While k <> -1
            k = InputBox("Enter a number -1 to quit:", VB6)
        Loop

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS