C# Program to Generate a Multiplication Table of a given integer
In this C# program, we will take input from the user and generate a multiplication table.
C# Program to Generate Multiplication Table of a given integer Code:
private static void Main(string[] args)
{
Console.WriteLine("Enter a Number");
int num, i, res;
num = int.Parse(Console.ReadLine());
for (i = 1; i <= 10; i++)
{
res = num * i;
Console.Write("{0} X {1} = {2} \n", num, i, res);
}
Console.ReadLine();
}
C# Program to Generate Multiplication Table of a given integer Output:
