int main() { int count; // Input count cout << "Enter the value of count" << endl; cin >> count; // Increment count ++count; // Print incremented value cout << "New value of count is " << count << endl; return 0; }
// Infinite loop: for( int count = 0; count < limit; count++ ) { cout << count << endl; }