Programers i need your help? (programming language C)?

can you help me i cant find the right code how to find sum separately of a matrix
(sorry about bad english). The sum of pink elements then green sum then sum of elements in purple and then in brown. At the end to find which of those diagonals have the maximum.
Update: i know about the maximum but not for the sum of each diagonal
1 answer 1