#include <stdio.h> int main() { double n = 0.0; double score[5][5] = {0}; int i = 0; for(i = 0;i<5;i++) { int j = 0; double sum = 0.0; for(j =0;j<5;j++) { scanf("%lf ",&score[i][j]); sum+=score[i][j]; printf("%.1lf ",score[i][j]); } printf("%.1lf",sum); printf("\n"); } return 0; }