using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("输入第一个数");
int a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("输入第二个数");
int b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("输入第三个数");
int c = Convert.ToInt32(Console.ReadLine());
if ((a > b&&b>c)||(c>b&&b>c))
{
Console.WriteLine("中间数:"+b);
}
else if ((b > a && a > c) || (c > a && a > b))
{
Console.WriteLine("中间数:" + a);
}
else
{
Console.WriteLine("中间数:" + c);
}
}
}
}