九九乘法表

今天闲来无事,就回忆了一下九九乘法表,之前都是用Java代码打的,不过现在在做.Net开发,于是就用C#写了一下,不过原理都是一样的~

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 控制台
{
  class Program
  {
    static void Main(string[] args)
    {
      int i;
      int j;
      int c;

      //int i,j,c;

      for (i = 1; i < 10;i++ )
      {
        for (j = 1; j <= i; j++)
        {
          c = i * j;
          Console.Write("{0}*{1}={2}\t", j, i, c);
        }
        Console.WriteLine();
      }

      Console.ReadLine();
    }
  }
}

原文地址:https://www.cnblogs.com/WangShuaishuai/p/7737640.html