#include <stdio.h>
int main(void)
{
double a, b;
printf("请输入2个数: ");
scanf("%lf%lf, &a,&b");
printf("a is %lf, b is %lf ", a, b);
if(a>- b)
printf("a 是最大值,最大值为: %lf ", a);
else
printf("b 是最大值,最大值为:%lf ", b);
return 0;
}
#include <stdio.h>
int main(void)
{
double a, b;
printf("请输入2个数: ");
scanf("%lf%lf, &a,&b");
printf("a is %lf, b is %lf ", a, b);
if(a>- b)
printf("a 是最大值,最大值为: %lf ", a);
else
printf("b 是最大值,最大值为:%lf ", b);
return 0;
}