Programming Reference/Librarys
Question & Answer
Q&A is closed
Syntax do instruction while ( condition );
#include <iostream> /* including standard library */ using namespace std; int main( void ) { int i; do cout << "Hello World no " << i << endl; while (i++); return 0; }
output Hello World no 0 Hello World no 1 Hello World no 2 Hello World no 3 Hello World no 4 Hello World no ... Hello World no 1579 and so on