2018-11-21(2)
2018-11-22 本文已影响0人
一只皮皮橙
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();
}
}
}