Look at the output. The loop skip the execution while i=2 but again start from next. This is the main factor of using Continue statement within loop. You can use this statement in every type of loops. If you still can not understand fell free to ask through comment.