废话不说,直接上代码好了

public static void Main()
    {
string str=" ";
int sum;
for(int i=1;i<=9;i++)
        {
for(int j=1;j<=i;j++)
            {
                sum=i*j;
                Console.Write(i);
                Console.Write("*");
                Console.Write(j);
                Console.Write("=");
                Console.Write(sum);
                Console.Write(str);
            }
            Console.WriteLine();
        }
        Console.Read();
    }

输出结果:

.net core cshtml .net core cshtml九九乘法表_.net core cshtml