c语言哪错了
查看原帖
c语言哪错了
1181083
Little_koiCheese楼主2023/11/13 23:24
#include<stdio.h>
int main() {
	int b = 0;
	int a = 0;
	int c = 0;
	scanf("%d %d %d", &a, &b, &c);
	int max = 0;
	int min = 0;
	int retmax = b > c ? b : c;
	int retmin = b > c ? c : b;
	if (a > retmax)
		max = a;
	else
		max = retmax;

	if (a < retmin)
		min = a;
	else
		min = retmin;
		
	
	printf("%d/%d", min , max);


	return 0;
}
2023/11/13 23:24
加载中...