I have to do this
Using a Do...Loop While structure, write the code that repeatedly prompts the user using an InputBox for a number, and continues to prompt the user until a valid positive number is entered.
Would someone check my answer? I can't figure why this is not working properly? I don't even know if I am doing what this question is asking me to do?! I just started Visual Basic 3 weeks ago
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim stringMagic As String
Do
stringMagic = InputBox("Enter my age", "Guess")
Loop While stringMagic = "51"
End Sub
End Class
Bookmarks