Adblock breaks this site

Simple while loop in VB.NET

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

  1. jonathanp198

    jonathanp198 Newcomer

    Joined:
    Aug 22, 2011
    Posts:
    7
    Referrals:
    0
    Sythe Gold:
    0
    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 >


 
 
Adblock breaks this site