#include<iostream>
using namespace std;
int main()
{
int a,b,c;
int MAX(int x,int y,int z);
cout <<"请输入三个整数:"<<endl;
cin >>a>>b>>c;
cout<<"最大数为:"<<MAX(a,b,c) <<endl;
return 0;
}
int MAX(int x,int y,int z)
{
int max;
if(x>y)max=x;
else max=y;
if(z>max)max=z;
return max;
using namespace std;
int main()
{
int a,b,c;
int MAX(int x,int y,int z);
cout <<"请输入三个整数:"<<endl;
cin >>a>>b>>c;
cout<<"最大数为:"<<MAX(a,b,c) <<endl;
return 0;
}
int MAX(int x,int y,int z)
{
int max;
if(x>y)max=x;
else max=y;
if(z>max)max=z;
return max;
}