72 547
Assignments Done
98,9%
Successfully Done
In April 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
Loop
'end of loop
Console.Write("End of loop")
'Delay
Console.ReadLine()
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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions