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