九九乘法表 c#
2013-02-27 20:19
197 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
#region 九九乘法表
for (int i=1; i<=9; i++)
{
for (int j = 1; j <= i; j++)
{
Console.Write(j + "*" + i + "=" + i * j+" ");
}
Console.WriteLine("\n");
}
#endregion
Console.ReadKey();
}
}
}