1/13/00
COM1100 Winter2000 Yuhong Yin Northeastern University
20
Verified Input with Default
nThe only difference from the verified input is that the program supplies a default value. The default value is displayed after the prompt, to alert the user to its availability and to inform the user of the default value. The statements have the format:
nx = RequestInt(“Enter a number:", 3);
nRequestString("Type in your name", “Yuhong”, myName);
n