#include <iostream>
#include <conio.h>
using namespace std;
char vocals[] = { 'a', 'e', 'i', 'o', 'u' };
int main()
{
char key = _getche();
cout << endl;
if (find(begin(vocals), end(vocals), key) != end(vocals)) {
cout << "Litera " << key << " este o VOCALA" << endl;
}
else {
cout << "Litera " << key << " este o CONSOANA" << endl;
}
}
C++
Sper ca te-am ajutat