11问答网
所有问题
求两个数平均数c语言代码
如题所述
举报该问题
推荐答案 2020-10-20
求两个数
平均数
c语言代码如下:
#include<stdio.h>
int main ()
{ int a,b;
scanf("%d%d",&a,&b);
printf("%.1f\n",(a+b)/2.0);
return 0;
}
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://11.wendadaohang.com/zd/PqvqPPqvFPFPPPS4PP4.html
相似回答
大家正在搜
相关问题
C语言求两个数平均数
编写一个程序,求两个数的平均值(用C语言)
c语言 编写一个函数,求两个数的平均值
C语言两个数求平均数;希望来个前辈详细说一下
c语言求n个数的平均数
求用C语言编写求两个数的和、差及平均值并输出
怎么用C语言算任意两个数平均值
求平均数的C语言编程