Are you sure?

Read one character, the answer to "Are you sure you want to quit?":

  • Y or y: print Goodbye!
  • N or n: print Staying.
  • anything else: print Wrong option

Use a switch on a char.

Tests
Results will be shown here
C++
Console
Press Run to start your program.