Question: Using Switch for a Menu (C PROGRAM) Print a menu that allows the user to choose between 3 options: 1) even/odd test for integers 2)

Using Switch for a Menu (C PROGRAM)

Print a menu that allows the user to choose between 3 options:

1) even/odd test for integers 2) greater of two integers 3) absolute value of an integer (do not use the Math library). 

When the user has selected an option, prompt for the user for the appropriate number of integers and print the corresponding result. Do not create complex code.

__________________________________________________________________

Example Output:

 

Make a selection:

1. Even/Odd Test on an Integer

2. Greater of 2 Integers

3. Absolute Value of an Integer

1 ** user input***

Enter an Integer to test

2 ** user input **

Even

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!