C++ program – Lowercase Vowels

by Nideesh C on April 29, 2011 · 0 comments

in C++




#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 Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. Sample – Program to enter a sentence and output the number of uppercase & lowercase consonants, uppercase & lowercase vowels in sentence..
  2. C++ program – Swap two variables using function overloading
  3. C++ program – Implementation of class
  4. Sample – Program to enter salary and output income tax and net salary.
  5. C program – Lexical Analyzer

Leave a Comment

Previous post:

Next post: