using System;
namespace Forloop
{
class Program
{
static void Main(string[] args)
{
int no, i,result;
Console.Write("Enter a number\t");
no= Convert.ToInt32(Console.ReadLine());
for (i = 1; i <= 10; i++)
{
result = no * i;
Console.WriteLine("{0} x {1} = {2}", no, i, result);
}
Console.ReadLine();
}
}
}
Output :
Tags:
csharp.net