using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int a, b, c, i;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
c = int.Parse(Console.ReadLine());
i = a;
if (a > b)
{if (a>c) i=a;
else i = c;
}
else
{
if (b > c) i = b;
else i = c;
}
Console.WriteLine("最大值为{0}", i);
Console.ReadLine();
}
}
}
编写一个程序,输入a,b,c三个值,输出其中最大者