I have a question about iterate through the Alphabet. I would like to have a loop that begins with \"a\" and ends with \"z\". After that, the loop begins \"aa\" and count to
The following populates a list with the required strings:
List result = new List(); for (char ch = 'a'; ch <= 'z'; ch++){ result.Add (ch.ToString()); } for (char i = 'a'; i <= 'z'; i++) { for (char j = 'a'; j <= 'z'; j++) { result.Add (i.ToString() + j.ToString()); } }