continue is used to skip an iteration of a loop
by immediately ending the current iteration of the loop,
moving to the next iteration.
continue statement ends the execution
of the current iteration
the loop immediately moves to the next iteration.
The code given below is used to print
the even numbers from
During each iteration,
we check the value of
i to see if it is odd,
i % 2 == 1.
If so, we run a
which ensures that no further code is run
for this iteration and we move to the next iteration of the loop.
continue statement ends
the execution of the current iteration.
The code given above is used to print
the odd numbers from
10 using a