A program has a char variable fruit that has been assigned


A program has a char variable fruit that has been assigned a value. Write a switch statement that outputs "Apple" if the variable contains lower or upper case 'a', "Banana" if it contains lower or upper case 'b', or "Invalid Input" for any other value.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: A program has a char variable fruit that has been assigned
Reference No:- TGS0600152

Expected delivery within 24 Hours