解题思路:注意事项:参考代码: #include<stdio.h> int main() { int a,b,c,t[100]; scanf("%d%d%d",&a,&b,&c); printf("%d ",(a<b?a:b)<c?(a<b?a:b):c); if(a>((a<b?a:b)<c?(a<b?a:b):c)&&a<((a>b?a:b)>c?(a>b?a:b):c)) { printf("%d ",a); } if(b>((a<b?a:b)<c?(a<b?a:b):c)&&b<((a>b?a:b)>c?(a>b?a:b):c)) { printf("%d ",b); } if(c>((a<b?a:b)<c?(a<b?a:b):c)&&c<((a>b?a:b)>c?(a>b?a:b):c)) { printf("%d ",c); } printf("%d ",(a>b?a:b)>c?(a>b?a:b):c); return 0; }
0.0分
4 人评分