+ 1

Make a programme to display the sum of diagonal elements of an n*n array.

Challenge

18th Feb 2018, 4:35 PM
AnandJeeChoubey
AnandJeeChoubey - avatar
7 Answers
18th Feb 2018, 7:28 PM
Aditya Rana
+ 4
well yes u can see the above code
19th Feb 2018, 9:59 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 4
i modified the code for both diagonals. logic is pretty much the same though.
19th Feb 2018, 4:51 PM
Aditya Rana
+ 3
left or right diagonal??
18th Feb 2018, 5:59 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
18th Feb 2018, 7:32 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
example?
18th Feb 2018, 5:25 PM
Obbu
Obbu - avatar
0
Both the diagonals
19th Feb 2018, 9:58 AM
AnandJeeChoubey
AnandJeeChoubey - avatar