#include <stdio.h>

int main() { int a, b, c; printf("请输入三个整数:\n"); scanf("%d%d%d", &a, &b, &c); if (a > b && a > c) { printf("%d是最大的数\n", a); } else if (b > a && b > c) { printf("%d是最大的数\n", b); } else { printf("%d是最大的数\n", c); } return 0; }

用c语言写一个三个整数比较大小简易代码

原文地址: https://www.cveoy.top/t/topic/3OL 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录