+ 2
Using Logical OR and if statement
To write a program using c++ that will use logical OR and of statement to indicate whether a character read from keyboard is an English vowel or not
4 Answers
+ 21
Do it!...
+ 9
char c;
cin >> c;
if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ){
cout<< c << " is vowel letter."<< endl;
}else{
cout<< c << " is not vowel letter.
}
+ 5
What Mohammad said is true and I just add that You can also use switch case for that purpose.