
Patrick B. answered 04/13/21
Math and computer tutor/teacher
using namespace std;
#include <iostream>
#include <ctype.h>
int Go()
{
char chChar;
cout << "Please input the character :>";
cin >> chChar;
if (isalpha(chChar))
{
chChar = toupper(chChar);
if (chChar=='A' || chChar=='E' || chChar=='I' || chChar=='O' || chChar=='U')
{
cout << chChar << " is a vowel " << endl;
}
else
{
cout << chChar << " is a consonant " << endl;
}
}
else
{
cout << "The character is not a letter " << endl;
}
}
int main()
{
Go();
}