C++ examples for Statement:do while
Use do...while loop to count value
#include <iostream> using namespace std; int main()/*w w w .j av a 2 s. c o m*/ { int i = 0; do { cout << i << endl; i++; } while (i <= 10); cout << "All Finished!" << endl; return 0; }