main()
{
char c;
int count = 0;
clrscr();
cout<<"\nENTER THE STRING(~ TO TERMINATE) : ";
do
{
c=getchar();
if( (c=='A' || c=='a') || (c=='E' || c=='e') || (c=='I'|| c=='i') || (c=='O' || c=='o') || (c=='U' || c=='u'))
{
count++;
}
}while(c!='~');
cout<<"THE NUMBER OF VOWELS PRESENT IS : "<
getch();
return 0;
}
No comments:
Post a Comment