Break statement use to come out from the inner loop

In this check prime number we have used the continue statement in while loop inside the if statement so once statement get break then it takes us out from while loop then how the loop do updation ( I=I+1) this also inside the while loop.
Here inner loop is if statement not a while loop ??

The break in C or C++ is a loop control statement which is used to terminate the loop . As soon as the break statement is encountered from within a loop, the loop iterations stops there and control returns from the loop immediately to the first statement after the loop.

Continue is also a loop control statement just like the break statement. continue statement is opposite to that of break statement, instead of terminating the loop, it forces to execute the next iteration of the loop.

i didn’t get your doubt properly
join this meet i will explain you

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.