News

While Loop = It is used in situations where we do not know the exact number of iterations of loop but destination is known. It is entry controlled loop in which condition is checked before the ...
WHILE loops test the condition at the beginning of the loop. If the condition is met, the code within the loop is executed before the program loops back to test the condition again. This program ...
Do-While Loop = In this loop, the condition is tested at the end of loop body. It is exit controlled loop in which condition is checked at the end of loop. In do while loop, the loop body will execute ...