标签:
99乘法表
//99乘法表的程序
int[] num = new int[10];
for (int i = 0; i < 10; i++)
{
num[i] = i;
}
Console.ForegroundColor = ConsoleColor.Red;
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < i; j++)
{
Console.Write("{0}X{1}={2} ", num[i], num[j], num[i] * num[j]);
if (num[i] * num[j] < 10)
{
Console.Write(" ");
}
}
Console.WriteLine();
}
Console.ReadKey();
标签:
原文地址:http://www.cnblogs.com/weloveshare/p/5297995.html