代码
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
for (int a = 1;a<=9;a++)
{
for(int b=1;b<=a;b++)
{
Console.Write("{0}*{1}={2}", a,b,a*b);
}
Console.WriteLine();
}
Console.ReadKey();
}
}
}
效果

网友评论