题目:三个整数找最小值
#include<iostream>
using namespace std;
int main()
{
int min;
int a,b,c;
cin>>a>>b>>c;
if(a<=b)
min=a;
else
min=b;
if(c<=min)
min=c;
cout<<"最小值为:"<<min;
return 0;
}
题目:三个整数找最小值
#include<iostream>
using namespace std;
int main()
{
int min;
int a,b,c;
cin>>a>>b>>c;
if(a<=b)
min=a;
else
min=b;
if(c<=min)
min=c;
cout<<"最小值为:"<<min;
return 0;
}