/*
*Copyright (c) 2014 ,烟台大学计算机学院
*All right reserved.
*文件名称:比较三个数的大小cpp
*作 者:王伟诚
*完成日期:2014年10月9日
*版 本 号:1.0
*
*问题描述:输入三个数a、b、c,比较并输出他们的最大值
*输入描述:三个整数
*程序输出:一个整数,代表最大数
*/
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a>b)
{
if(c>a)
cout<<"最大值为"<<c;
else
cout<<"最大值为"<<a;
}
else {
if(c>b)
cout<<"最大值为"<<c;
else
cout<<"最大值为"<<b;
}
return 0;
}