#include #include #include struct Student { int num; float msc; float psc; float esc; }a[100]; int main() { int i; for (i=0;i<=2;i++) { scanf("%d",&a[i].num); scanf("%f",&a[i].msc); scanf("%f",&a[i].psc); scanf("%f",&a[i].esc); } for (i=0;i<3;i++) { printf("%d ",a[i].num); printf("%.1f ",a[i].msc); printf("%.1f ",a[i].psc); printf("%.1f ",a[i].esc); printf("%.1f\n",a[i].esc+a[i].msc+a[i].psc); } return 0; }