public static void Main()
Console.WriteLine("Welcome to the Times Table Generator");
Console.WriteLine("Please enter in the size of the table:");
int num = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Here is your custom multiplication table:");
Console.WriteLine("\n"+"\n");
Console.Write("{0,-6}","X");
for (int m = 1; m <= num; m++){
Console.Write("{0,-12}",m);
Console.WriteLine(new String ('_',12*num+1));
for (int r = 1; r <= num; r++){
for (int c = 1; c <= num; c++){
Console.Write("{0,-6}"," ");
Console.Write("{0,-6}",r * c);}