23.零起点学算法21——求平均值

#include<stdio.h>
int main()
{
    double a,b,c;
    while(scanf("%lf %lf %lf",&a,&b,&c)!=EOF)
    {
        printf("%.3f\n",(a+b+c)/3);
    }
    return 0;
}

 

posted @ 2018-09-28 17:53  Estwind  阅读(681)  评论(0编辑  收藏  举报