static void Main(string[] args){string s = "Welcometodotnetfunda":char[] c = s.ToCharArray();int count = 0;foreach (char ch in c){if (ch == 'o')count++;}Console.WriteLine("No of times o is repeated :" + count);Console.ReadKey();}
Login to post response