Write a program in C# Sharp to display the multiplication table vertically from 1 to n

 


using System;

public class VerticalMultiplicationTable
{
    public static void Main()
    {
        int n;

        Console.WriteLine("Enter a number: ");
        n = Convert.ToInt32(Console.ReadLine());

        Console.WriteLine("The multiplication table from 1 to {0} is:", n);
        for (int i = 1; i <= n; i++)
        {
            for (int j = 1; j <= n; j++)
            {
                Console.Write("{0} * {1} = {2}\t", i, j, i * j);
            }
            Console.WriteLine();
        }
    }
}
Write a program in C# Sharp to display the multiplication table vertically from 1 to n Write a program in C# Sharp to display the multiplication table vertically from 1 to n Reviewed by Bhaumik Patel on 8:09 PM Rating: 5