[Practice](CodeChef: Practical coding for everyone CHECKCHRACTE)
Author: Nilprasad Birajdar
Tester: Rushikesh Thakare
Editorialist: Shadab Shaikh
DIFFICULTY:
CAKEWALK
PREREQUISITES:
None
PROBLEM:
You have Given a character. You have to check entered character is vowel or consonant
SOLUTIONS:
[details=“Setter’s Solution”]
#include
using namespace std;
int main()
{
char c;
cin >> c;
if(c == ‘a’ || c == ‘e’ || c ==‘i’ || c==‘o’ || c==‘u’ || c==‘A’
|| c==‘E’ || c==‘I’ || c==‘O’ || c==‘U’){
cout << “VOWEL”;
} else {
cout <<“CONSONANT”;
}
return 0;
}
details]