public static void Main()
Console.Write("Input upto the table number starting from 1: ");
table = int.Parse(Console.ReadLine());
for (y = 1 ; y <= 10 ; y++ )
for (x = 1 ; x < table ; x++)
Console.Write($"{x}X{y} = {x*y} , ");
Console.Write($"{x}X{y} = {x*y} , ");