运行以下双重循环,输出为()
int a[3][3]={{1,2,3},{4,5,6},{7,8,9}}; int s=0; for(int i=0;i<3;i++) for(int j=0;j<3;j++) if(i==j) s+=a[i][j]; cout<<s;
15
14
16
13