Question: Task 03: Convert the program-fragment below to a complete C program that uses if else if-else statement instead of the switch statement char cityInitial; printf
Task 03: Convert the program-fragment below to a complete C program that uses if else if-else statement instead of the switch statement char cityInitial; printf ("Enter the city initial: ") scanf(" %c", &cityInitial); switch (cityInitial) t case 'R': case 'r': case 'D': case 'd': prints ("The city is in Zone 1") break; case 3" case 'j' print ("The city is in Zone 2") break case 'M': case 'm' Case case 'a':printt("The city is in Zone 3") default: print ("ExrOr: Invalid eity initial"): break
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
