#include <iostream> int main() { int counter = 0; while (1) { counter ++; if (counter > 10) break; } std::cout << "counter: " << counter << "\n"; return 0; }
counter: 11