#include"stdio.h"
#include"string.h"
#include"conio.h"
#include"windows.h"
int main()
{
double a,b,c;
double avg;//平均值
printf("请输入三个双精度数值:\n");scanf("%If %If %If",&a,&b,&c);
avg = (a+b+c)/3;
avg = (int)(avg*10+0.5);
avg /= 10;
printf("avg = %f \n",avg);
return 0;
}
为什么输入之后计算不出来?
怎么输入三个双精度数值的?
求大神破解?
MinRam
相关分类