Do while statement
#include <iostream> using namespace std; const long delay = 10000000L; int main() { int tic; cout << "How often should be output? "; cin >> tic; do { for( long i = 0; i < delay; ++i ) ; cout << "Output!\a" << endl; } while( --tic > 0 ); return 0; }