#include <iostream>
using namespace std;
int max(int x,int y)
{
int t;
if(x>y)
t=x;
else
t=y;
return t;
}
int main()
{
int number1,number2;
cout<<"输入两个数:";
cin>>number1>>number2;
int maxvalue;
maxvalue=max(number1,number2);
cout<<"最大值="<<maxvalue<<endl;
return 0;
}
习题二程序
最新推荐文章于 2024-03-31 21:44:35 发布