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

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

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!