#include<stdio.h>
int main()
{
int a = 200;
int b = 300;
int c = 0;
c = (a > b ? a: b);
printf("较大值为:%d\n", c);
return 0;
}
运行结果为:
#include<stdio.h>
int main()
{
int a = 200;
int b = 300;
int c = 0;
c = (a > b ? a: b);
printf("较大值为:%d\n", c);
return 0;
}
运行结果为: