1/13/00
COM1100 Winter2000 Yuhong Yin Northeastern University
23
Summary of input -- 3
nVerified Read with Default uses a function that prints the given prompt as well as the given default value and awaits input. If the input is not correct, the function repeats the request and gives the user another chance to type in the data. If the user enters no data, the default value is used instead.
nint x;
n x = RequestInt(“Enter a number:”, 3);
n
n