展开全部
#include<stdio.h>
#include<conio.h>
int main()
{int a,b,c,d,e,f;
scanf("%d%d%d",&a,&b,&c);
d=a>b?(a>c?a:c):(b>c?b:c);
f=a<b?(a<c?a:c):(b<c?b:c);
e=a+b+c-d-f;
printf("%d %d %d\n",d,e,f);
return 0;
}
#include<conio.h>
int main()
{int a,b,c,d,e,f;
scanf("%d%d%d",&a,&b,&c);
d=a>b?(a>c?a:c):(b>c?b:c);
f=a<b?(a<c?a:c):(b<c?b:c);
e=a+b+c-d-f;
printf("%d %d %d\n",d,e,f);
return 0;
}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2019-04-19
展开全部
#include <stdio.h>
int main(int argc,char*argv){
int a = 75;
int b = 30;
int c = 32;
printf("%d\n",a>b?(a>c?a:c):(b>c?b:c));
printf("%d\n",a<b?(a<c?(b<c?b:c):a):(b<c?c:b));
printf("%d\n",a<b?(a<c?a:c):(b<c?b:c));
return 0;
}
int main(int argc,char*argv){
int a = 75;
int b = 30;
int c = 32;
printf("%d\n",a>b?(a>c?a:c):(b>c?b:c));
printf("%d\n",a<b?(a<c?(b<c?b:c):a):(b<c?c:b));
printf("%d\n",a<b?(a<c?a:c):(b<c?b:c));
return 0;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询