·打印9x9乘法表
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _9x9乘法表
{
class Program
{
static void Main(string[] args)
{
int product;
for(int i = 1; i <= 9; i++)
{
for(int j = 1; j <= i; j++)
{
product = i * j;
Console.Write("{0}*{1}={2} ", j, i, product);
}
Console.WriteLine();
}
Console.ReadLine();
}
}
}
运行效果: