Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
multi dimension sum
//gcc 5.4.0 #include <stdio.h> #define n 5 #define m 5 /* one dimension {{},{},{},{}}; */ /* multi dimension {{{1 row},{2 row},{3 row},{4 row}},{{1 row},{2 row},{3 row},{4 row}}}; */ int main(void) { int scoreBoard1[n][m] = {{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}}; int scoreBoard2[n][m] = {{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}}; int scoreBoard3[n][m] = { for(int i=0; i<n; ++i){ for(int j=0; j<m; ++j){ scoreBoard3[i][j]=scoreBoard1[i][j]+scoreBoard2[i][j]; printf("scoreBoard3[%d][%d] = %d\n", i, j, scoreBoard3[i][j]); } printf("\n"); } return (0); }
run
|
edit
|
history
|
help
0
printint a struct
BMI Calc CT
WAP in C to convert decimal to binary
18BCE2182 ASSESS_2 Q1
C_141106_Factorial
19_1_7
Project 5 v.06
AVANCE PREGUNTA 10 DE CADENAS
C_141210_Funciones
binary to txt