Professional Documents
Culture Documents
Arronne Montero
Arronne Montero
Arronne Montero
Start
b. Read the user's input as an integer and store it in the 'number' variable.
d. Prompt the user with the question, "Would you like to continue? (Y/N): "
e. Read the user's response as a string and store it in the 'response' variable.
f. Check if the user's response is "Y" or "Yes" (case-insensitive). If true, continue the loop.
g. Check if the user's response is "N" or "No" (case-insensitive). If true, print "Program
terminated" and exit the loop.
h. If neither "Y" nor "N" is entered, display "Invalid Response. Please enter Y or N."
Stop
PSEUDOCODE
Begin
do {
Else:
} while (true)
End