Briefly describe why a do loop is generally more efficient t
Briefly describe why a \'do\' loop is generally more efficient than a \'while\' loop or a \'for\' loop:
Solution
1.do loop is much slow to write and able to implicit when compared with the for loop or while loop.while loop needs premise variable be modified in the loop.comparitively the increement of for loop is in a clear fashion for the user.
Structure of DO loop:
do
<affirmations>
<continue do>
<affirmations>
<exit do>
<affirmations>
loop{while/untill}condition
2.DO loop hardly executes the loop terms,while the premise value is pacified.when this premis value tends to false the loop ends.
3.while loop sctrunizes the constraints earlier than the clot executes .hence the structure of while loop is called as pre-test loop.
4. do loop is much adjustable than while.
5. Nesting of dissimilar types of control structures is possible with thisw do loop.
