Console.WriteLine("请输入一个数字");
int c = Convert.ToInt32(Console.ReadLine());
int i = 0;
for (i = 0; i < c; i++)
{
Console.WriteLine("{0}+{1}={2}", i, c-i, c);
}
Console.ReadKey();
网友评论