Continue is the statement in C++:
What is Jump statement?
-Jump statements cause an unconditional jump to another statement elsewhere in the code. They are used primarily to interrupt switch statements and loops.
How many jump statement in C++ ?
-break
-continue
-goto
Continue statement:
It is jumping statement which continue the loop iteration from the point where it writtten.
program:
#include < iostream>
using namespace std;
int main()
{
int i=1;
while(i<=10)
{
if(i==1 || i==5 || i==7 || i==9)
{
i++;
continue;
}
cout<< i<<" ";
i++;
}
return 0;
}
2 3 4 6 8 10