c语言题目:输入a,b两个值,输出其中最小值?

2024-11-07 18:34:16
推荐回答(1个)
回答(1):

#include
main() {
int a , b ;
printf("please input 2 integers:\n");
scanf_s("%d%d", &a,&b);
int n = a < b ? a : b;
printf("%d\n", n);
return 0;
}