Just like decision making statements, looping statements also execute the statements based on some condition but if we want to execute the same statement more than once with condition checking then we go for looping statements.
The following are the types of looping statements in Java: -
1. while loop
2. do..while loop
3. for loop
2. do..while loop
3. for loop
1. while loop:
while loop is the basic of all looping statements, which executes the loop repeatedly until the conditional expression evaluates to false.
0 Comments
If you have any doubts,please let me know