I have Post The Code for Find Vowels in C# Code.

Jayakumars
Posted by Jayakumars under ASP.NET category on | Points: 40 | Views : 1902
protected void Button1_Click(object sender, EventArgs e)
{
//AEIOU
string st = "JESUS";
string st2 = "";
int total = 0;
string Concats = "";
for (int i = 0; i <= st.Length - 1; i++)
{
st2 = st[i].ToString();
if (st2 == "A" || st2 == "E" || st2 == "I" || st2 == "O" || st2 == "U")
{
total = total + 1;
Concats = Concats + st2;
}
}
Response.Write("Real String : " + st + " Strings : " + Concats + " Counts : " + total);
}

Comments or Responses

Login to post response