Sunday, November 14, 2010

Display the Table of Input Number

class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter Table Number");
int a = Convert.ToInt32(Console.ReadLine());
int b = 0;
for (int i = 1; i <= 10; i++)
{
b = b + a;
Console.WriteLine(a+"*"+i+"="+b);
}

}
}