C++ break statement
C++ break statement The break statement in C++ is used to immediately terminate a loop or a switch statement. After the break statement executes, control moves to the first statement following the loop or switch. Syntax break; Example 1: break in a for Loop #include <iostream> using namespace std; int main() { for (int i […]