namespace ConsoleApplication4
{ class Program { static void Main(string[] args) { while (true) { Console.WriteLine("a的数字:"); int a = int.Parse(Console.ReadLine()); Console.WriteLine("b的数字:"); int b = int.Parse(Console.ReadLine()); int c = a + b; Console.WriteLine("加法结果是:" + c); c = a - b; Console.WriteLine("减法结果是:" + c); c = a * b; Console.WriteLine("乘法结果是:" + c); c = a / b; Console.WriteLine("除法结果是:" + c); c = a % b; Console.WriteLine("取余数结果是:" + c); } Console.ReadLine(); } }}