if (i%3!=2)continue;跳过除以3不等于2的i
#include<iostream>using namespace std;
int main(){ int i=1; while(i<=15) { i++; if (i%3!=2) continue; else cout << "i = " << i << endl; } return 0;}continue 跳出本次循环,执行下一次如果是break的话,则整个循环结束了