Use do..while loop to redisplay the menu Display the following menu on the screen: MENU 1. Process
Fantastic news! We've Found the answer you've been seeking!
Question:
Use do..while loop to redisplay the menu
Display the following menu on the screen:
MENU
1. Process 1
2. Process 2
3. Process 3
0. Exit
Type a number 1, 2, 3 to select the Process:
Read the number.
Write the switch statement based on the selected number:
If selected number = 1: Display "You select Process 1"
If selected number = 2: Display "You select Process 2"
If selected number = 3: Display "You select Process 3"
If selected number = 0: Display "You select Exit"
For other number: Display "Invalid Process."
After finishing selecting one process, re-display the menu to allow users to select other process, until users select 0 to exit
Related Book For
Posted Date: