#作业目标:九九乘法表
##代码:
/**
* 九九乘法表
**/
for (int i = 1; i <= 9; i++)
{
for (int a = 1; a <= i; a++)
{
Console.Write("{0}*{1}={2}\t", i, a, i * a); //“\t”增加空隙 write在一行输出}
}Console.WriteLine(); //WriteLine换行输出
}
Console.ReadKey();
/**
* 九九乘法表
**/
for (int i = 1; i <= 9; i++)
{
for (int a = 1; a <= i; a++)
{
Console.Write("{0}*{1}={2}\t", i, a, i * a); //“\t”增加空隙 write在一行输出}
}Console.WriteLine(); //WriteLine换行输出
}
Console.ReadKey();