nIn both
previous cases, the user is required to supply input and the program will not
proceed further until satisfactory data has been typed in.
nSometimes, it
is desirable to let the user decide whether or not she will supply the next
data item.
nFor example,
if a user is typing in a series of data, but the program does not know ahead
of the time how many items there will be in the series. The program keeps
asking for the next item, but when it does not receive a new entry, it knows
that it can continue with printing the totals.
n