为什么要有中间量
#include<stdio.h>
main()
{
int x,y,t;
scanf("%d%d",&x,&y);
if(x>y)
{
t=x;
x=y;
y=t;
}
printf("%d, \n%d\n",x,y);
return 0;
}
why use "t"?
#include<stdio.h>
main()
{
int x,y,t;
scanf("%d%d",&x,&y);
if(x>y)
{
t=x;
x=y;
y=t;
}
printf("%d, \n%d\n",x,y);
return 0;
}
why use "t"?
那怎么按顺序输出3个或以上的数呢?
谢谢