求两个数平均数c语言代码

如题所述

求两个数平均数c语言代码如下:
#include<stdio.h>
int main ()
{ int a,b;
scanf("%d%d",&a,&b);
printf("%.1f\n",(a+b)/2.0);
return 0;
}
温馨提示:答案为网友推荐,仅供参考
相似回答