Console.WriteLine("请输入一个数");intsum = Convert.ToInt32(Console.ReadLine());for(inti =0; i <= sum; i++) { Console.WriteLine("{0}+{1}={2}", i, sum - i, sum); } Console.ReadKey(); }}
}
Console.WriteLine("请输入一个数");intsum = Convert.ToInt32(Console.ReadLine());for(inti =0; i <= sum; i++) { Console.WriteLine("{0}+{1}={2}", i, sum - i, sum); } Console.ReadKey(); }}
}
本文标题:第九次作业1
本文链接:https://www.haomeiwen.com/subject/nmqkhqtx.html
网友评论