using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入一个正整数");
string str_number = Console.ReadLine();
int number = Convert.ToInt32(str_number);
for(int a=0;a<=number;a++)
{
Console.WriteLine("{0}+{1}={2}",a,number-a,number);
}
Console.ReadKey();
}
}
}
网友评论