按大小顺序输出#include<studio.h>int main(){ int a=10; int b=3; ...
按大小顺序输出
#include<studio.h>
int main()
{
int a=10;
int b=3;
int c=5;
int temp
if(a>b)
[ temp=a;a=b;temp=b;
]
if(b>c)
[temp=b,b=c;temp=c;
]
if(a>c)
[temp=a;a=c;temp=c;
]
printf("%d,%d,%d\n",a,b,c);
}
学员评论
杨洋2012-08-16
你感兴趣的课程