#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string.h> int main() { int a = 0; int b = 0; int c = 0; int i = 0; scanf("%d%d%d",&a,&b,&c); if (a < b) { i = a; a = b; b = i; } if (a < c) { i = a; a = c; b = i; } if (b < c) { i = b; b = c; c = i; } printf("从大到小依次输出\n:"); printf("%d\n%d\n%d\n", a, b, c); return 0; }
标签:d%,语言,int,代码,练习,n%,printf,include From: https://www.cnblogs.com/ayue6/p/17742216.html