我这输入3个数从小到大排序的程序哪里错了?
程序代码:#include<stdio.h>
void gc( int a,int b,int c)
{
int temp;
if(a>b)
{
temp=a;
a=b;
b=temp;
}
if(a>c)
{
temp=a;
a=c;
c=temp;
}
if(b>c)
{
temp=b;
b=c;
c=temp;
}
printf("a=%d,b=%d,c=%d",a,b,c);
}
void main()
{
int x,y,z;
printf("输入 x,y,z:");
scanf("%d,%d,%d",&x,&y,&z);
gc(x,y,z);
}




