Allow the user to choose which program to run an infinite number of times
Programm workflow should be the next:
1) ask the user which program should be run
2) read the number (1 or 2)
3) depending on the entered value in step 2, run execution of the appropriate program
4) ask the user do we need to exit (step 5) or to run another sub-program (go to step 1)
5) say "Bye" if the user chooses to quit the program
Programm requirements:
do some refactoring and optimization (as discussed earlier - the Main function should only start and control program workflow without the direct interaction with I/O and logic )
use while statement (optionally you can try to implement the same logic with do...while statement)
you might need to use the break or continue statements
Based on #4
Prerequisites:
Allow the user to choose which program to run an infinite number of times
Programm workflow should be the next: 1) ask the user which program should be run 2) read the number (1 or 2) 3) depending on the entered value in step 2, run execution of the appropriate program 4) ask the user do we need to exit (step 5) or to run another sub-program (go to step 1) 5) say "Bye" if the user chooses to quit the program
Programm requirements:
while
statement (optionally you can try to implement the same logic withdo...while
statement)