#include int main () { cout << "Enter a number: "; int num; while (!(cin >> num).eof()) { cout << "You entered: " << num << endl; cout << "\nnext number: "; } cout << "End of File" << endl; return 0; } /* Enter a number: 4 You entered: 4 next number: 3 You entered: 3 next number: End of File */