#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<ctype.h>
void main()
{
clrscr();
char st[100];
int l,c,i;
cout<<"Enter the string"<<endl;
cin.getline(st,100);
l=strlen(st);
for(i=0;i<=l;i++)
{
if(islower(st(i))) && ((st(i)==a)||(st(i)==e)||(st(i)==i)||(st(i)==o)||(st(i)==u))
c++;
}
cout<<"The no is"<<c;
getch();
}
Not Satisfied ? Just search & get the result
Related posts:
- Sample – Program to enter a sentence and output the number of uppercase & lowercase consonants, uppercase & lowercase vowels in sentence..
- C++ program – Swap two variables using function overloading
- C++ program – Implementation of class
- Sample – Program to enter salary and output income tax and net salary.
- C program – Lexical Analyzer
