7-11 Calculate the average score

7-11 Calculate the average score

topic

It is known that the scores of a student's math, English and computer courses are 87 points, 72 points and 93 points respectively, and find the average score of the student's 3 courses (the results are output in integers).
Input format:
No input for this question
Output format:
Output results in the following format:

math = 87, eng = 72, comp = 93, average = 计算所得的平均成绩

Code

#include<stdio.h>

int main(){
	printf("math = 87, eng = 72, comp = 93, average = %d",(87+72+93)/3);
	return 0; 
} 
Published 21 original articles · praised 0 · visits 39

Guess you like

Origin blog.csdn.net/weixin_47127378/article/details/105566331