赞
踩
#include<stdio.h>
int main()
double a,b,c,d;
scanf("%lf,%lf,%lf",&a,&b,&c);
d=(a+b+c)/3;//34.7778 34.8
d=(int)(d*10+0.5 )/10.0; //347.778 348.278 348 34.8
printf("%.1lf",d);
return 0;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。