题解 | #总成绩和平均分计算#
总成绩和平均分计算
http://www.nowcoder.com/practice/0fa5132c156b434da4347ad051c4be22
#include <stdio.h>
int main()
{
double a = 0;
double b = 0;
double c = 0;
double x = 0;
double y = 0;
scanf("%lf %lf %lf", &a, &b, &c);
x = a + b + c;
y = x / 3.0;
printf("%.2lf %.2lf\n", x, y);
return 0;
}