A continue statement is used in an iteration control to skip the remaining statements in the loop and proceed with the next iteration of the loop
#include <iostream>
using namespace std;
int main() {
for (int i = 0; i < 15; i++) {
if (i == 7) {
break;
}
cout << i << "\n";
}
return 0;
}
Comments
Leave a comment