Addition Table in Console Application

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 744
Addition Table in Console Application
=======================================
static void Main(string[] args)
{
Console.Write(" Serial Numbers :-> ");
int tot;
for (int i = 1; i <= 10; i++)
{
Console.Write("\n");
for (int j = i; j <= 10; j++)
{
tot = i + j;
Console.Write("\n");
Console.Write(i + "+" + j+ "="+ tot);
}

}
Console.Out.Flush();
var name = Console.ReadLine();
}

Comments or Responses

Login to post response