Strings In Depth6 / 18
Up next

Index and iterate chars

var s = "abc";
// index a single char
Console.WriteLine(s[0]);
// or walk every char
foreach (char c in s)
    Console.Write(c + ".");
Console.WriteLine();
What you're solving

strings are indexable and enumerable