Dear Sir,
How to find in string value in how many vowels in one words can you give coding.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pravin GhadgePosted Dec 17, 2011, 9:03 AM
string strname="Pravin";
lengthofstring=strname.Length;
for(i=0;strName[i]!='\0';i++)
{
if(strName[i]=='a'||strName[i]=='e'||strName[i]=='i'||strName[i]=='o'||strName[i]=='u'||strName[i]=='A'||strName[i]=='E'||strName[i]=='I'||strName[i]=='O'||strName[i]=='U')
{
count++;
}
}
Messagebox.show(count);
VulpesPosted Dec 17, 2011, 8:55 AM