You can nest for-loops and have them iterate through the desired characters like this:
for (char symbol1 = 'a'; symbol1 <= 'z'; symbol1++)
{
for (char symbol2 = 'a'; symbol2 <= 'z'; symbol2++)
{
}
}
and if You wish to print to a text file:
StreamWriter output = new StreamWriter("output.txt");
output.WriteLine("Hello! This is the first line in my text file.");
output.WriteLine("And this is the second one.");
output.Close();
don't forget to call output.Close() or output.Flush() to make sure that the text is written to the file before your program terminates
or simply use:
File.WriteAllText("output.txt", "Hello!");
You will need to add "using System.IO;" at the top of your program