78 442
Assignments Done
Successfully Done
In September 2019

Answer to Question #44208 in Visual Basic for jj

Question #44208
how to write a Do...Loop while that will loop until the user presses stop?
Expert's answer
Module Module1
''' <summary>
''' Main function
''' </summary>
''' <remarks></remarks>
Sub Main()
'flag for stop loop
Dim _stop As Boolean = True
'Do...Loop while that will loop until the user presses stop
Do While _stop = True
'read key s
Console.Write("Press ""s"" to stop: ")
If (Console.ReadLine().ToUpper() = "S") Then
_stop = False
End If
'end of loop
Console.Write("End of loop")
End Sub
End Module

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions