用C#写一个小九九乘法表
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleManyHellos
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("打印小九九乘法表");
int i, j;
for (i = 1; i <= 9; i++)
{
for (j=1; j<=i; j++)
{
Console.Write("{0} * {1} = {2}\t", i, j, i * j);
}
Console.WriteLine();
}
}
}
}![[C#小程序]命令行小程序之 小九九乘法表](https://cache.yisu.com/upload/information/20200310/64/122598.jpg)
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。