[PTA] 7-11 average is calculated (5 min)

Known a student of mathematics, English and computer courses scores were 87 points, 72 points and 93 points, find the student 3 course grade point average (according to the results of integer output).

Input Format:
This problem no input

Output format:
according to the following output format:

math = 87, eng = 72, comp = 93, average = average of the calculated results

#include <stdio.h>
int main()
{
    int a=(87+72+93)/3;
    printf("math = 87, eng = 72, comp = 93, average = %d\n",a);

return 0;
}

Published 48 original articles · won praise 0 · Views 332

Guess you like

Origin blog.csdn.net/weixin_46399138/article/details/105331649