A.实验2_1_判断两数的大小
#include<stdio.h>
int main() {
int a;
int b;
int max;
int min;
scanf("%d%d", &a, &b);
if (a == b) {
printf("The two numbers are equal.");
} else if (a > b) {
max = a;
min = b;
printf("The larger number is %d, the smaller number is %d.", a, b);
} else {
max = b;
min = a;
printf("The larger number is %d, the smaller number is %d.", b, a);
return 0;
}
}