int count = 0; string st = "Gowthaman"; foreach (char a in st) { if(char.Equals(a,'a')) { count++; } } Console.WriteLine(count.ToString());
Login to post response