LETTER IS VOWELS OR CONSONANT



#include<iostream.h>
#include<conio.h>
void main ()
{
char ch;
clrscr();
cout<<"\n Enter Letter ";
cin>>ch;
switch(ch)
{
case 'A':
case 'a' : cout<<"\nVowel"; 
break;
case 'E' :
case 'e' : cout<<"\nVowel"; 
break;
case 'I' :
case 'i' : cout<<"\nVowel"; 
break;
case 'O' :
case 'o' : cout<<"\nVowel"; 
break;
case 'U' :
case 'u' : cout<<"\nVowel";  
break;
default : cout<<"\nConsonant";
}
getch();
}
Output 

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | MCQ Questions Syllabus Based

Programmingway@Eklavya Technosys!: JTET 2026 | MCQ Questions Syllabus Based : JTET 2026 | MCQ Questions Based on Syllabus | Information and ...