Posts by Dérik Sehn • 1 point
1 post
-
0
votes2
answers15417
viewsA: How to add the diagonal of a matrix in C?
I did it in a way that doesn’t even need to if, in C, I’m new in programming but if it helps anything, here it is: #include<stdio.h> main() { int D[5][5], i=0, j=0, soma1=0,soma2=0 ,x=5;…