主页
C++
C++ Break 和 Continue语句
demo_continue_while
运行 ❯
×
更改方向
保存代码
更改主题
#include
using namespace std; int main() { int i = 0; while (i < 10) { if (i == 4) { i++; continue; } cout << i << "\n"; i++; } return 0; }
0
1
2
3
5
6
7
8
9