1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-11-27 08:26:20 +00:00
202401-programming-assignments/【实践课外】0.熟悉编程环境/7-2 计算平均分.c

13 lines
238 B
C

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