解题思路:
注意事项:
参考代码:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main()
{
int a,b,c,t;
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{
t=a;a=b;b=t;
}
if(a>c)
{
t=a;a=c;c=t;
}
if(b>c)
{
t=b;b=c;c=t;
}
printf("%d %d %d",a,b,c);
return 0;
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:460 |
不容易系列2 (C语言代码)浏览:631 |
【亲和数】 (C语言代码)浏览:893 |
字符串对比 (C语言代码)浏览:1454 |
杨辉三角 (C语言代码)浏览:498 |
1054题解浏览:508 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:652 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:810 |
【计算直线的交点数】 (C语言代码)浏览:980 |
C语言程序设计教程(第三版)课后习题10.1 (C++代码)浏览:524 |