From 8b88cb65a661c90b7a91bf9ed583b4bbb0dda471 Mon Sep 17 00:00:00 2001 From: p6twphb5c <1281646536@qq.com> Date: Mon, 13 Nov 2023 22:01:41 +0800 Subject: [PATCH] ADD file via upload --- E2step5.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 E2step5.c diff --git a/E2step5.c b/E2step5.c new file mode 100644 index 0000000..ff3ca4d --- /dev/null +++ b/E2step5.c @@ -0,0 +1,35 @@ +#include +#include +#define N 3 +struct Student +{char xuehao[10]; + int banji; + char name[20]; + float grade1; + float grade2; + float grade3; +}; +int main() +{struct Student st[N]={{"10001",11,"Zhang",99.5,88.5,89.5}, +{"10002",12,"Yang",77.9,56.5,87.5}, +{"10003",11,"Liang",92.5,99.0,60.5}}; + int i,j=-1,k,l; + char c='a'; + char s[20]; + scanf("%s",s); + for(i=0;i