RSS

Difference Do While & Do Until

Do While & Do Until





 

 
-          Do while loop runs till the condition is not true

-          Do until loops till the condition get true.

-          It depends on the usage and requirement we have

-          A 'do-while' loop completes steps as long as a certain condition is true.

-          A 'do-until' loop does something until a condition is no longer true.

-          In pseudo code examples, it would be like

Do <something> while not x=10
Do <something> until x=10

Functionally, they would be equivalent and get the same job done. It is all in how you trap the exit condition. As you can see one is the inverse of the other.

Do you want to know how to use Do While and Do Until Loop in Visual BASIC?? If yes, then go through the video below ….




1.      http://answers.yahoo.com/question/index?qid=20091103210224AAVe7Yl

0 comments:

Post a Comment