Important Notice:

Course Content
Conditional and Iterative Statements (Chapter-5) M3-R5.1
About Lesson
while loop:-

       While Loop Simply Repeatedly Statements को Execute करता है , जब तक कि दी हुई Condition False न हो। जब तक Condition True है तब तक Loop Execute होगा।

While Loop को Entry Control Loop भी कहते हैं क्योंकि loop को Execute करने से पहले दी हुई condition Check होती है, condition True होने पर ही Loop में Entry होती है।

syntax :-

while condition / expression :
                   statements

or

while (condition / expression) :     

                 statements

 Example:-

i= 1

while i<=10:   

     print (“hello world”)  

     i=i+1

 

while loop:-

     While Loop simply repeatedly executes the statements until the given condition is False. The loop will execute as long as the condition is true.

             While Loop is also called Entry Control Loop because before executing the loop, the given condition is checked, entry into the loop occurs only when the condition is true.

syntax :-

while condition / expression :
                   statements

or

while (condition / expression) :     

                 statements

 Example:-

i= 1

while i<=10:   

     print (“hello world”)  

     i=i+1

error: Content is protected !!