#include int main () { cout << "Enter a number: "; int num; while (cin >> num) { cout << "You entered: " << num << endl; cout << "\nnext number: "; } cout << "Error on input" << endl; return 0; } /* Enter a number: 5 You entered: 5 next number: 6 You entered: 6 next number: Error on input */