My thoughts about vb.Net, asp.net, Php, Javascript and more.
While loop
While loop keeps executing until the condition against which it tests remain true. The syntax of while loop looks like this:
While condition[statements]End While
Example on While loop
Module Module1 Sub Main() Dim d, e As Integer d = 0 e = 6 While e > 4 e -= 1 d += 1 End While System.Console.WriteLine("The Loop ran " & e & "times") End Sub End Module
Post a Comment
No comments:
Post a Comment