what is continue statement doing , sir is saying that continue will skip everything but only inside the loop , then why in case of 21 it is not printing came out of the loop as it is outside the loop which is discussed in the example.
Break and continue
in this case as no=27
it is multiple of 7 so if condition holds true and break condition executed
you come out of loop
hence no will not print
sir I am not asking about the break statement I am asking about continue statement, why if condition holds true in continue statement then it is not printing “you come out of loop” which is outside the loop.
sir I am not asking about the break statement I am asking about continue statement, why if condition holds true in continue statement then it is not printing “you come out of loop” which is outside the loop.
this is wrong
actually sir did not build the code
so it run previous code which is correct later in the video
Correct Explanation
if no is 21 then continue will be executed as 21%7=0
which brings you to line no 14 at starting of loop
hence no will not print
Please mark the doubt as resolved
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.