![]() |
#2
纯蓝之刃2020-08-30 18:51
|
[local]1[/local]
[code]#include <stdio.h>
max(float x,float y)
{
float z;
z=x>y?x:y;//这里错了吗?不是输出较大值吗
return(z);
}
main()
{
float a,b;
int c;
scanf("%f,%f",&a,&b);
c=max(a,b);
printf("max is %d\n",c);
}[/code]