You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RLmk/步骤2(修改1).c

14 lines
322 B

#include<stdio.h>
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;
}