编辑代码

#include <stdio.h>
int min_(int x,int y,int z){
return x<y?(x<z?x:z):(y<z?y:z);
}
int main(){
int a,b,c;
printf("Please input a,b,c:\n");
scanf("%d%d%d",&a,&b,&c);
printf("min=%d\n",min_(a,b,c));
return 0;
}