// ch1-for.cpp // interactive driver loop from ch. 1, p. 55-58 // uses for to count from 1..tests, where tests entered by user #include using namespace std; int main(){ int tests; //user input-- no. of tests to run int sec; //user input for one test run //prompt and read tests cout << "enter no. of tests: "; cin >> tests; //interactive driver loop for (int i = 1; i <= tests; i++){ cout << "Test " << i << "enter sec: "; cin >> sec; } //exit cout << "Exiting.\n" << endl; return 0; }