#include using namespace std; int main() { cout << "Input integers (as many as you like!):\n"; int x; while ( cin >> x ) // keep reading...... // until CTRL-D (Unix) or CTRL-Z (Windows) { cout << "You entered " << x << endl; } cout << "Thanks and good-bye.\n"; return 0; }