wan'cheng'yi'xia'yao'q
{
? ? ? ? ? ? int shuzi = 0;
? ? ? ? ? ? Console.WriteLine("請(qǐng)輸入數(shù)字");
? ? ? ? ? ? shuzi = Convert.ToInt32(Console.ReadLine());
? ? ? ? ? ? for (int i = 0; i <= shuzi; i++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if (i + (shuzi - i) == shuzi)
? ? ? ? ? ? ? ? { Console.WriteLine("{0}+{1}={2}", i, shuzi-i,? shuzi); }
? ? ? ? ? ? }
? ? ? ? ? ? Console.ReadKey();
? ? ? ? }