mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-30 09:16:20 +00:00
13 lines
238 B
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;
|
||
|
}
|