主题:请大家帮我看看哪错了怎样改?
#inculde<stdio.h>
main<>
{int a,b,c,temp;
printf("Input a,b,c:\n");
scanf("%d%d%d",&a&b&c);
printf("Before: a=%d,b=%d,c=%d\n",a,b,c);
if(a>b)
{temp=a;a=b;b=temp;}
if(b>c)
{temp=b;b=c;c=temp;}
if(a>b)
{temp=a;a=b;b=temp;}
printf("After:a=%d,b=%d,c=%d\n",a,b,c,);
}
main<>
{int a,b,c,temp;
printf("Input a,b,c:\n");
scanf("%d%d%d",&a&b&c);
printf("Before: a=%d,b=%d,c=%d\n",a,b,c);
if(a>b)
{temp=a;a=b;b=temp;}
if(b>c)
{temp=b;b=c;c=temp;}
if(a>b)
{temp=a;a=b;b=temp;}
printf("After:a=%d,b=%d,c=%d\n",a,b,c,);
}