#include<
stdio.h>
int main(){
a[3][3]={1,2,3,4,5,6,7,8,9};
int avg[3];
for(int i = 0; i< 3; i++){
int sum = 0;
for(int j = 0; j<3; j++){
sum+=a[i][j];
printf("%d ", a[i][j]);
}
printf("\n");
avg[i] = (float)sum / 3.0;
}
for(int i = 0; i< 3;i++)
printf("%d ", avg[i]);
printf("\n");
return 0;
}本回答被提问者采纳