Question: Create a menu that offers 4 different print out options. The program should ask the user to choose an option and will print a message

Create a menu that offers 4 different print out options. The program should ask the user to choose an option and will print a message based on that input. Each options logic should be handled in another function(they can all be handled by the same function, but a call must be made to that function "after the selection is made). The program should continue asking the user for input after the option is finished until the user selects 5. That will exit the program. At least one function should accept arguments(parameters) and print there value to the user. The main function should contain a single function call and nothing else. An example of a menu would be: 1. Print out You chose option 1 2. Print out You chose option 2. 3. Print out You chose option 3. 4. Print out You chose option 4. 5. Exit stdlib.h contains a function for exiting a program. exit(1); /use this line to exit the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
