Question: C++ Program Read in a character. Print vowel if it is a vowel (a, e, i, o, u, A, E, I, O, U) or consonant
C++ Program
Read in a character. Print vowel if it is a vowel (a, e, i, o, u, A, E, I, O, U) or consonant if it is not. Hint: a nice trick to simplify your logic is to first convert the input to lowercase...
This is a basic beginner code. No special characters or symbols. Use chars, cin, cout, and if statements.
Given code:
#include
int main() { //YOUR_CODE }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
