36. Let A(nx n) that are not diagonal array. Write a program to find the sum of all the elements which
lie on either diagonal. For example, for the matrix shown below, your program should output
68 =(1+6 +11+16 +4+7 +10 +13):
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
Answers
Answered by
4
ANSWER :
read the above two images
read the above two imageshope this helps u.....
read the above two imageshope this helps u.....plz mark me as brainliest answer
Attachments:
![](https://hi-static.z-dn.net/files/d9d/9629bdd666c96d713926b86df3580a28.jpg)
![](https://hi-static.z-dn.net/files/d62/7a66e267fac8926280b75138a0fda546.jpg)
Similar questions