主题:[讨论][请教]请问错哪,我找不出啊!!!
#include<stdio.h>
void main()
{int min(int a,int b,int c);
int a,b,c;
printf("input 3 number:\n");
scanf("%d,%d,%d",&a,&b,&c);
printf("the min is %d",min(a,b,c));
}
int min(int a,int b,int c)
{int m;
if(a<b&&a<c) m=a;
else if(b<a&&b<c) m=b;
else m=c;
return(m)
}
/*输入三数,并输出最小数*/
void main()
{int min(int a,int b,int c);
int a,b,c;
printf("input 3 number:\n");
scanf("%d,%d,%d",&a,&b,&c);
printf("the min is %d",min(a,b,c));
}
int min(int a,int b,int c)
{int m;
if(a<b&&a<c) m=a;
else if(b<a&&b<c) m=b;
else m=c;
return(m)
}
/*输入三数,并输出最小数*/