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

13 lines
238 B
C
Raw Normal View History

2024-10-11 10:23:08 +00:00
#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;
}