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 using namespace std;

int main() { //YOUR_CODE }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!