using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace value
{
class Program
{
static void Main(string[] args)
{
int n,i;
Console.WriteLine("Enter the number.");
n = int.Parse(Console.ReadLine());
for(i=1; i<=10;i++)
{
Console.WriteLine(" {0} * {1} = {2}",n,i,n*i );
}
Console.ReadLine();
}
}
}
output:-
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace value
{
class Program
{
static void Main(string[] args)
{
int n,i;
Console.WriteLine("Enter the number.");
n = int.Parse(Console.ReadLine());
for(i=1; i<=10;i++)
{
Console.WriteLine(" {0} * {1} = {2}",n,i,n*i );
}
Console.ReadLine();
}
}
}
output:-