C语言初学 if-else语句判断俩数的最大值

#include<stdio.h>

main()

{

float a,b;

printf("输入俩个任意实数 ");

scanf("%f%f",&a,&b);

if(a>b)

printf("%f ",a);

else

printf("%f ",b);

return 0;

}

原文地址:https://www.cnblogs.com/lj-1568/p/4376540.html