#include <iostream>
using namespace std;
int main()
{
char c;
cout << "Enter a letter: ";
cin >> c;
if(c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U' || c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
cout << "The letter "<<c<<" is a vowel ";
}
else{
cout << "The letter "<<c<<" is a constant ";
}
return 0;
}
Comments
Leave a comment