From ead1d7d25c03a365686d43a38cfc01f7de3d1b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=9F=B9=E6=AF=85?= <3020727885@qq.com> Date: Tue, 18 Apr 2023 19:32:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=AF=8F=E4=B8=AA=E5=AD=A6?= =?UTF-8?q?=E7=94=9F=E5=90=84=E9=97=A8=E8=AF=BE=E7=A8=8B=E7=9A=84=E6=80=BB?= =?UTF-8?q?=E5=88=86=E5=92=8C=E5=B9=B3=E5=9D=87=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lpy.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lpy.c diff --git a/lpy.c b/lpy.c new file mode 100644 index 0000000..1a677c8 --- /dev/null +++ b/lpy.c @@ -0,0 +1,15 @@ +void AverSumofEveryStudent( STU stu[], int n, int m) +{ + int i, j; + for (i=0; i0 ? stu[i].sum / m : -1; + printf("student %d: sum = %.0f, aver = %.0f\n", +i+1, stu[i].sum, stu[i].aver); + } +} \ No newline at end of file