题目是输出a,b。c中最小数值
自学c语言,求帮忙看看哪里不对呀
#include
#include
int min(int a,int b,int c )
{
int z;
if(a<b) z=a;
{
if(a<c) z=a;
else z=c;
return (z);
}
else z=b;
{
if(b<c) z=b;
else z=c;
return(z);
}
}
main ()
{ int x,y,m;
printf("Inpute three intgers:");
scanf("%d,%d,%d",&x,&y,&m);
z=min(x,y,m);
printf("min=%d",z);
}