using System; public class Test { public static void Main() { char[] b=new char[]{'X','0','X'}; String s="X-X"; foreach(char y in s)Console.WriteLine(y); foreach(char x in b )Console.WriteLine(x); Console.WriteLine(b.Length); } }