Write a program in C# Sharp to display the multiplication table of a given integer.

 


using System;

public class Program
{
    public static void Main()
    {
        int number, result;

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

        Console.WriteLine("The multiplication table of {0} is: ", number);

        for (int i = 1; i <= 10; i++)
        {
            result = number * i;
            Console.WriteLine("{0} x {1} = {2}", number, i, result);
        }
    }
}
Write a program in C# Sharp to display the multiplication table of a given integer. Write a program in C# Sharp to display the multiplication table of a given integer. Reviewed by Bhaumik Patel on 10:58 PM Rating: 5