c:

#include<stdio.h>
//从大到小
int main()
{
int a, b, c;
int x = 0;

printf("input message:n");
scanf("%d %d %d", &a, &b, &c);

if(a < b)
{
x = a;
a = b;
b = x;
}
if(a < c)
{
x = a;
a = c;
c = x;
}
if(b < c)
{
x = b;
b = c;
c = x;
}

printf("output message:n %d %d %d", a, b, c);

return 0;
}

 

内容来源于网络如有侵权请私信删除
你还没有登录,请先登录注册
  • 还没有人评论,欢迎说说您的想法!

相关课程

5426 0元 限免
3082 99元 198元 5折