c++ schleife abbrechen
#include <iostream>
int main() {
for (int i = 0; i < 10; ++i) {
std::cout << "Iteration: " << i << std::endl;
// Check a condition to break out of the loop
if (i == 5) {
break;
}
}
return 0;
}