nConditional Verified Read:(counts the number of inputs, prints it at the end)
n int n;
n int i = 0;
n while (ReadingInt("Type in
the next number:", n);
n i++;
n cout << n << " :
" << n * n << endl;
n }
n cout << "Done "
<< i << " numbers entered." << endl;
n
nWhen you do not know how many times will the input be supplied,
use Conditional Verified Read, giving the user the option to decline
further input.
n