Computer Science, asked by udit5857, 3 months ago

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 lovelylavanya44418
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:
Similar questions