我的第一个C#代码,学习记录贴
using System;
namespace ConsoleApp6
{
internal class Program
{
static void Main(string[] args)
{
int x, y;
for(x = 1; x < 9; x++)
{
for(y= 1; y <= x; y++)
{
//"\t"表示跳转至下一个制表位输出
Console.Write($"{y} * {x} = {x * y}\t");
}
Console.WriteLine();//表示结束内循环后换行
}
}
}
}