#include <iostream> void main() { int idx = 0; // Prints 01234: do { std::cout << idx; } while ( ++idx < 5 ); }