博客
关于我
C语言 - 从大到小排列三个数
阅读量:343 次
发布时间:2019-03-04

本文共 337 字,大约阅读时间需要 1 分钟。

#define _CRT_SECURE_NO_WARNINGS#include
int main(){ int a = 0; int b = 0; int c = 0; //输入 scanf("%d%d%d", &a, &b, &c); //调整 if (a < b) { int temp = a; a = b; b = temp; } if (a < c) { int temp = a; a = c; c = temp; } if (b < c) { int temp = b; b = c; c = temp; } //输出 printf("%d %d %d\n", a, b, c); return 0;}

转载地址:http://xqbe.baihongyu.com/

你可能感兴趣的文章
MySQL集群解决方案(5):PXC集群
查看>>
MySQL面试宝典
查看>>
WAP短信:融合传统短信和互联网的新型通信方式
查看>>
mysql面试题学校三表查询_mysql三表查询分组后取每组最大值,mysql面试题。
查看>>
Mysql面试题精选
查看>>
MySQL面试题集锦
查看>>
mysql面试题,存储引擎InnoDB和MyISAM
查看>>