//iterate over a string using System; public class Test { public static void Main() { string iterate = "abcd"; for(int i=0;i<iterate.Length;i++) { Console.WriteLine(iterate[i]); } } }