Question: I am in an introductory C programming class can anybody help with this? The statement needs to be in C please. 1. Write a nested
I am in an introductory C programming class can anybody help with this? The statement needs to be in C please.
1. Write a nested if else statement that will compare the values of total and MAX. If the values of total and MAX are equal, compare the values of total and sum, if total is less than sum print a message that states total and MAX are equal and total is less than sum. If the values of total and MAX are not equal print a message that total is not equal to MAX.
2. Assume num is of type int and myChar is of type char.Write a nested if else statement that will do the following:
if num is equal to 5 assign myChar to W
if num is equal to 6 assign myChar to X
if num is equal to 7 assign myChar to Y
otherwise assign myChar to Z
3. Use a switch statement to solve #2.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
