Showing posts with label While- End While. Show all posts
Showing posts with label While- End While. Show all posts

Monday, January 28, 2013


·         While- End While: यह loop condition के अनुसार loop को चलाने के लिए प्रयोग की जाती है। इस loop मे एक condition को define कर किया जाता है जिसके True होने पर looping statements execute होती हैं और false होने पर यह directly बाहर हो जाता है। इसका syntax निम्नलिखित है।

Syntax-
       While Condition
              [Statements]
              [Exit while]
              [Statements]
       End While
Exit while का प्रयोग while loop को break करने के लिए किया जाता है।
Ex-

        Dim i As Integer = 0

        While i <= 10
            MsgBox(i)
        End While

Contact us

Name

Email *

Message *