Console.WriteLine("请输入一个数字");
string shu = Console.ReadLine();
int number = Convert.ToInt32(shu);
for (int i = 0; i <= number; i++)
{
Console.WriteLine("{0}+{1}={2}", i, number - i, number);
}
Console.ReadKey();
Console.WriteLine("请输入一个数字");
string shu = Console.ReadLine();
int number = Convert.ToInt32(shu);
for (int i = 0; i <= number; i++)
{
Console.WriteLine("{0}+{1}={2}", i, number - i, number);
}
Console.ReadKey();