Continue Statement
#include <iostream> /* * Print a count, but don't print multiples of 5 or 7. */ using namespace std; int main() { // Count. for(int i = 1; i <= 25; ++i) { // Eliminate numbers divisible by 5 or 7. if(i % 5 == 0) continue; if(i % 7 == 0) continue; // Print the number here. cout << i << " "; } cout << endl; }

The continue statement goes to the next iteration of a loop. In a while, it jumps to the test. In a for, it goes to the increment.