Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

diagonal sum

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.26 sec, absolute running time: 0.4 sec, cpu time: 0.31 sec, memory peak: 3 Mb, absolute service time: 0,67 sec 
edit mode |  history  | discussion
matrix one:
10 20 30 40 50 
11 21 31 41 51 
12 22 32 42 52 
13 23 33 43 53 
14 24 34 44 54 
matrix two:
10 20 30 40 50 
11 21 31 41 51 
12 22 32 42 52 
13 23 33 43 53 
14 24 34 44 54 
matrix diagonal sum:
20             
   42          
      64       
         86    
            108