Dear Sir,
How to find in string value in how many vowels in one words can you give coding.
C# programming
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Dec 17, 2011, 3:55 AM EST
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Dec 17, 2011, 4:03 AM EST
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);