Example & Tutorial understanding programming in easy ways.

Where we use the continue statement? What if we placed continue statement in if condition body?

We use continue statement in loops:

for loop

while loop

do while


Example:

while(i<10){

if i==2

continue;

i++;

}


Continue in if condition:

Example:

if(condition)

{

continue;
}


-It give error.




Read More →