Continue Statement

The continue Statement

for ( int i = 0; i <= 19; i++ ) {
	if ( ( i % 10 ) == 0 ) {
		continue;
	}
	cout << i << endl;
}

The continue; statement will skip everything else in the loop and go to the next iteration of the loop.

In this case it will not send 10 to cout because it was told to continue on. when the if condition found that the 10 was divisible by 10 with modulus division: %, it then ran continue; and said "skip the printing of this value".