Syntax do instruction while ( condition );
#include <stdio.h> /* including standard library */ //#include <windows.h> /* uncomment this for Windows */ int main( void ) { int i; do printf("Hello World no %i\n",i); while (i++); return 0; }
output user@host~:# ./do 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