编写一个程序,从键盘输入三个不相同的整数,输出其中中间大的数字
参考如下:
#include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); int t = a > b ? a : b; t = t > c ? t : c; printf("%d", t); }