#include<iostream>
using namespace std;
int main()
{
void sort(int x,int y,int z);
int a,b,c;
cin>>a>>b>>c;
sort(a,b,c);
return 0;
}
void sort(int x,int y,int z)
{
int temp;
if(x>y){temp=x;x=y;y=temp;}
if(z<x) cout<<x<<endl;
else if(z<y) cout<<z<<endl;
else cout<<y<<endl;
}
输入三个整数,将他们排序然后输出中间那个数
最新推荐文章于 2023-07-11 23:44:17 发布