Question: Write a C program using Microsoft Visual Studio Create an enumeration with the values EVEN and ODD. Generate a random number, and print the number

Write a C program using Microsoft Visual Studio

Create an enumeration with the values EVEN and ODD. Generate a random number, and print the number to the screen. If the number is even, assign EVEN to an enumeration variable. If the number is odd, assign ODD to an enumeration variable. Use a switch statement with the enumeration to print Even if the random number is even and Odd if the random number is odd.

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!