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
Get step-by-step solutions from verified subject matter experts
