using System;
class Program
{
public static void Main()
{
Console.WriteLine("Enter a number whose table you want");
int Number = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= 10; i++)
{
int table = Number * i;
Console.WriteLine("{0} X {1} = {2}",Number,i,table);
}
}
}
class Program
{
public static void Main()
{
Console.WriteLine("Enter a number whose table you want");
int Number = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= 10; i++)
{
int table = Number * i;
Console.WriteLine("{0} X {1} = {2}",Number,i,table);
}
}
}
No comments:
Post a Comment