c语言 比较3个数的大小

//3.将3个数按从大到小输出
比较3个数的大小,先比较其中的我两个。在用第3个数与它们进行比较
//#include<stdio.h>
//#include<stdlib.h>
//
//int main() {
// int i;
// int max,next;
// int tmp;
// scanf("%d %d",&max,&next);
// if (next > max){
// tmp = max;
// max = next;
// next = tmp;
// }
// scanf("%d", &tmp);
// if (tmp > max) {
// printf("%d %d %d\n", tmp, max, next);
// }
// else if(tmp>next) {
// printf("%d %d %d\n", max,tmp, next);
// }
// else {
// printf("%d %d %d\n", max,next,tmp);
// }
//
// system(“pause”);
// return 0;
//}

猜你喜欢

转载自blog.csdn.net/tianyuzilin/article/details/88775361