Question: Write a program to prompt the user for a character c. If the character input is 'm' or 'M', print Male. If the character
Write a program to prompt the user for a character c. If the character input is 'm' or 'M', print Male. If the character input is 'f or 'F', print Female. For any other character, print Invalid. [use switch statement] Enter a single character: 1 Answer= Invalid! Enter a single character: m Answer= Male Enter a single character: F Answer Female
Step by Step Solution
There are 3 Steps involved in it
Certainly Based on the question we want to write a program that prompts the user for a single charac... View full answer
Get step-by-step solutions from verified subject matter experts
