Subscribe to Feeds

Send Your COMPLETED Projects To georgepj@hotmail.com

We'll Publish It With Your Name :-)

Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]

Lowercase Vowels

Click Here To Download C++ File Of This Program

 //prg to count no of lower case vowels in a string  
//Downloaded From www.c4cpp.co.nr. (C)2009.All rights reserved.
#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();
}

No comments: