求大神知道一下下小白
/*Description:比较输入的四个浮点数,打印最小数*/#include<stdio.h>
void main(void)
{
float 11.5,44.8,78.9,99.7,min;
printf("请输入四个浮点数:");
scanf("%d, %d, %d, %d", &11.5,&44.8, &78.9, &99.7);
min=11.5;
if(44.8<min)
min=44.8;
if(78.9<min)
min=78.9;
if(99.7<min)
min=99.7;
printf("%d %d, %d, %d中最小的数是%f\n",11.5,44.8,78.9,99.7,min);
}