(b < min) min = b;if(c < min) min = c;returnmin; }intmain(void){inta, b, c;puts("请输入三个整数。");printf("整数a:");scanf("%d", &a);printf("整数b:");scanf("%d", &b);printf("整数c:");scanf("%d", &c);printf("最小值是%d。\n",min3(a, b, c));return0;...
int a, b, c; printf("请输入三个整数:\n"); scanf("%d%d%d", &a, &b, &c); add(a,b,c); return 0; } 方法二 int add(int x,int y,int z)//6-2(2) { int min = x; //假设x为最小数 if (y<min) min = y; if (z<min) min = z; printf("最小数是:%d\n", min)...