using System;
using System.Collections.Generic;
using System.Text;
namespace blue02
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入三个数:");
int a = Convert.ToInt32(Console.ReadLine());
int b = Convert.ToInt32(Console.ReadLine());
int c = Convert.ToInt32(Console.ReadLine());
if (a==b||a==c||b==c)
Console.WriteLine("请输入三个不同的数!~~~~");
else
if (a > b)
{
if (b > c)
{
Console.WriteLine("三个数中最大数是:{0}最小数是{1}", a, c);
}
else
{
if (a > c)
{
Console.WriteLine("三个数中最大数是:{0}最小数是{1}", a, b);
}
else
{
Console.WriteLine("三个数中最大数是:{0}最小数是{1}", c, b);
}
}
}
else
{
if (b < c)
{
Console.WriteLine("三个数中最大数是:{0}最小数是{1}", c, a);
}
else
{
if (a < c)
{
Console.WriteLine("三个数中最大数是:{0}最小数是{1}", b, a);
}
else
{
Console.WriteLine("三个数中最大数是:{0}最小数是{1}", b, c);
}
}
}
}
}
}