Question: Use C programming Write a program that exits when the user inputs the character 'y'. At the start of the program, prompt the user to
Write a program that exits when the user inputs the character 'y'. At the start of the program, prompt the user to input a character by printing the string "Would you like to exit? (y) ". If the input character is 'y' or 'Y', then the program quits; if the input character is a newline, i.e., 'In', then do not print anything; otherwise, print the prompt again
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
