2025-03-20 10:29:51 +08:00

11 lines
200 B
C

#include <stdio.h>
#define MAXD(x, y) (x>y?x:y)
int main(){
int a, b;
scanf("%d %d", &a, &b);
//(1>2?1:2) 将MAXD替换成三目运算符
printf("%d \n", MAXD(a, b));
return 0;
}