[C#] c#九九乘法表 →→→→→进入此内容的聊天室

来自 , 2019-04-27, 写在 C#, 查看 104 次.
URL http://www.code666.cn/view/04f19115
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Multiplication
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             string t = string.Empty;
  13.             for (int i = 1; i < 10; i++)
  14.             {
  15.                 for (int j = 1; j <= i; j++)
  16.                 {
  17.                     t = string.Format("{0}×{1}={2} ", j, i, (j * i));
  18.                     Console.Write(t);
  19.                     if (j * i < 10)
  20.                     Console.Write(" ");
  21.                     if (i == j)
  22.                     Console.Write("\n");
  23.                 }
  24.             }
  25.             Console.Write("请按任意键继续...");
  26.             Console.Read();
  27.         }
  28.     }
  29. }
  30. //csharp/1118

回复 "c#九九乘法表"

这儿你可以回复上面这条便签

captcha