1章7题

#include<iostream>
using namespace std;
int main()
{int a,b,c;
int f(int x,int y,int z);
cin>>a>>b>>c;
c=f(a,b,c);
cout<<c<<endl;
return 0;
}
int f(int x,int y,int z){
 int m;
 if(x<y)m=x;
 else m=y;
 if (z<m)m=z;

 return(m);
}

 

posted on 2017-09-11 20:26  三叶癌  阅读(72)  评论(1编辑  收藏  举报

导航