Check an alphabet whether it is a vowel or not in c++
Zaarm Tech Selected answer as best November 20, 2021
Check below code in c++ to check an alphabet whether it is a vowel or not in c++
#include<iostream.h> #include<conio.h> void main() { char c; clrscr(); cout<<"Enter a character"<<endl; cin>> c; if (c=='A' || c=='a' || c=='E' || c=='e' || c=='I' || c=='i' || c=='O' || c=='o' || c=='U' || c=='u') cout<<endl<<c << " is a vowel"; else cout<<endl<<c << " is not a vowel"; getch(); }
Zaarm Tech Selected answer as best November 20, 2021