main() {int a[4][4]={{1,2,-3,-4},{5,6,7,8},{11,12,13,14},{15,16,17,18}}; int i=0,j=0,s=0;
main(){inta[4][4]={{1,2,-3,-4},{5,6,7,8},{11,12,13,14},{15,16,17,18}};inti=0,j=0,s=0;...
main()
{int a[4][4]={{1,2,-3,-4},{5,6,7,8},{11,12,13,14},{15,16,17,18}};
int i=0,j=0,s=0;
while(i++<4)
{if (i==2||i==4)continue;
j=0;
do{s+=a[i][j];j++;}while(j<4);}
printf(''%d\n'',s);}}
结果92 求详细过程 展开
{int a[4][4]={{1,2,-3,-4},{5,6,7,8},{11,12,13,14},{15,16,17,18}};
int i=0,j=0,s=0;
while(i++<4)
{if (i==2||i==4)continue;
j=0;
do{s+=a[i][j];j++;}while(j<4);}
printf(''%d\n'',s);}}
结果92 求详细过程 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询