回复 9楼 书生牛犊
#include <stdio.h>#include <math.h>
int main()
{
printf("%-12s%-6s%-11s%-7s%s\n","NAME","MATH","C LANGUAGE","SUM","AVERAGE");
double b,c,e,f,g,h,i,j;
string a,d;
scanf("%s%lf%lf%lf%lf",a,&b,&c,&e,&f);
g=b+c;
h=e+f;
i=(b+c)/2;
j=(e+f)/2;
printf("g=%7.2f,h=%7.2f\n,i=%7.2f,j=%7.2f",g,h,i,j);
return 0;
}