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);
}