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