The continue statement causes the program to skip the rest of the loop in the current iteration as if the end of the statement block has been reached, causing it to jump to the start of the next iteration.
for(int i=0;i<n;i++) ←————←
cout<<”\nEnd of loop”;
The Output of the above example is:
1 2 3 4 6 7 8 9 10
End of loop