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