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