填空题 C语言
题号 #152974

下面程序是求出数组arr的两条对角线上元素之和,请填空。 
#include "stdio.h" 
main() 
{int arr[3][3]={2,3,4,8,3,2,7,9,8},a=0,b=0,i,j; 
for(i=0;i<3;i++) 
for(j=0;j <3;j++) 
if( 【12】 )a=a+arr[i][j]; 
for(i=0;i<3;i++) 
for( 【13】 ;j>=0;j--) 
if( 【14】 ) 
b=b+ arr[i][j]; 
printf("%d,%d\n",a,b);}

进入在线模考

参考答案

暂无

答案解析

i==j;j=2;i+j==2

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考