using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int a, b, c;
Console.WriteLine("请输入三个整数:");
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
c = int.Parse(Console.ReadLine());
int max1;
max1 = a > b ? a : b;
int max2 = a > c ? a : c;
int max = max1 > max2 ? max1 : max2;
Console.WriteLine("三个数的最大值是:"+max);
Console.ReadKey();
}
}
}