parent
eabee81951
commit
39f2421d17
@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
Loading…
Reference in new issue