已知某位学生的数学、英语和计算机课程的成绩分别是87分、72分和93分,求该生3门课程的平均成绩(结果按整型输出)。

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