Simple while loop in VB.NET

Discussion in 'Programming General' started by jonathanp198, Sep 2, 2011.

Simple while loop in VB.NET
  1. Unread #1 - Sep 2, 2011 at 5:58 AM
  2. jonathanp198
    Joined:
    Aug 22, 2011
    Posts:
    7
    Referrals:
    0
    Sythe Gold:
    0

    jonathanp198 Newcomer

    Simple while loop in VB.NET

    Example of while loop:

    Sub CheckWhile()
    Dim intCounter As Integer = 0
    Dim intNumber As Integer = 10
    While intNumber > 6
    intNumber -= 1
    intCounter += 1
    End While
    MsgBox("The loop ran " & intCounter & " times.")
    End Sub

    Visit: Cegonsoft
     
< C++ Exercises + Problem | Online Game - School project >

Users viewing this thread
1 guest


 
 
Adblock breaks this site