用c语言编写程序计算输出10,20和35三个数的平均值?

如题所述

#include<stdio.h>
int main()
{
printf("10, 20, 35平均分为:%.2f" , (10+20+35)/3.0);
return 0;
}
温馨提示:答案为网友推荐,仅供参考
第1个回答  2021-04-26
#include<stdio.h>
main()
{
int a=10,b=20,c=35;
float d;
d=(a+b+c)/3;
printf(“%f”,d);
}

}
相似回答