From 39f2421d1745519f652848de85141402fc964fb2 Mon Sep 17 00:00:00 2001 From: pqfc6e4lh <407900437@qq.com> Date: Fri, 10 Nov 2023 12:02:36 +0800 Subject: [PATCH] ADD file via upload --- 步骤2(修改1).c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 步骤2(修改1).c diff --git a/步骤2(修改1).c b/步骤2(修改1).c new file mode 100644 index 0000000..9c5df7b --- /dev/null +++ b/步骤2(修改1).c @@ -0,0 +1,13 @@ +#include +int main() +{ + int i; + int b[1001]; + float c[1001],d[1001],e[1001],sum[1001]; + for(i=1;i<=3;i++) + scanf("%d%f%f%f",&b[i],&c[i],&d[i],&e[i]); + sum[i]=c[i]+d[i]+e[i]; + for(i=1;i<=3;i++) + printf("%d %.1f %.1f %.1f %.1f\n",b[i],c[i],d[i],e[i],sum[i]); + return 0; +}