#include
#include
#define N 3
int main(void)
{
int a[N][N] = {1,2,3,4,5,6,8,7,9};
int iterx = 0, itery = 0;
int sum = 0;
for(iterx = 0; iterx < N; iterx++)
{
for(itery = 0; itery < N; itery++)
{
sum += a[iterx][itery];
}
}
printf("the sum is %d\n", sum);
return 0;
}
朋友, 你应该注明你需要的代码的语言。
语言是什么?