求最小的数

#include<iostream>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	if(a>=b)
	{
		if(b<=c)
		cout<<b;
		else cout<<c;
	}
	else if(a<b)
	{
		if(a>=c)
		cout<<c;
		else cout<<a;
	}
}

  

猜你喜欢

转载自www.cnblogs.com/wbyzs/p/10011757.html
今日推荐