/*
*copyright(c)2014,烟台大学计算机学院
*All rights reserved.
*文件名称:test.cpp
*作者:黄勇
*日期:2014年10月13日
*版本编号:v1.0
*
*问题的描述:输入3个整数,输出其中的最大值
*输入描述:输入三个数 a,b,c
*程序输出:输出其中最大值为x
*/
# include <iostream>
using namespace std;
int main()
{
int x,a,b,c;
cout<<"输入三个数:";
cin>>a>>b>>c;
if (a>=b) x=a;
else x=b;
if (x>=c) ;
else x=c;
cout<<"三个数中的最大值为:"<<x<<endl;
return 0;
}