using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Threading;
using System.IO;
namespace CSharpProgram
{
class AkbTechie
{
static void Main(string[] args)
{
int num,i,product;
Console.Write("Enter the table number: ");
num = int.Parse(Console.ReadLine());
Console.WriteLine("Multiplication Table of the Given Number is :-");
for (i = 1; i <= 10; i++)
{
product = num * i;
Console.Write("{0} X {1} = {2} \n", num, i, product);
}
Console.ReadKey();
}
}
}
Output:-
Enter the table number: 5
Multiplication Table of the Given Number is :-
5 X 1 = 5
5 X 2 = 10
5 X 3 = 15
5 X 4 = 20
5 X 5 = 25
5 X 6 = 30
5 X 7 = 35
5 X 8 = 40
5 X 9 = 45
5 X 10 = 50
0 टिप्पणियाँ