用C语言编程:求一个3行3列的矩阵对角线的元素之和.
用C语言编程:求一个3行3列的矩阵对角线的元素之和.
其他人气:256 ℃时间:2020-03-20 12:10:33
优质解答
#include int main(){int array[3][3], sum;int i, j;for (i = 0; i < 3; i++){for (j = 0; j < 3; j++){scanf("%d", &array[i][j]);}}sum = array[0]...
我来回答
类似推荐
猜你喜欢
- 1一个数的4倍,比20的25℅还大2,求这个数.(列方程解答
- 2做制取氧气的实验时,为什么导管要伸入集气瓶内?
- 3In Tokyo there are always t_______ many cars in streets for people to drive fast.
- 4世界上牙齿最多的生物是什么、
- 5一个长100米,宽65米的长方形果园,它的面积是多少公顷?
- 6水稻、棉花、花生、谷子他们分别适用于哪一种土壤?
- 7以倒叙开头,写三个句子来介绍人
- 8he has the duty to take care of these children=he is in _____ of______care of these children
- 9( )Good afternoon,____ Green!---Good afternoon!A.mrs B.Miss C.mr D.miss
- 10名人传的阅读心得