Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
POLE[radky][sloupce]
//clang 6.0.0 #include <stdio.h> #define SLOUPCE 6 #define RADKY 3 int main(void) { int i,f; int matA[RADKY][SLOUPCE]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17}}; int matB[RADKY][SLOUPCE]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17}}; int matC[RADKY][SLOUPCE]; for(i=0;i<RADKY;i++) { for(f=0;f<SLOUPCE;f++) { printf("%2d ",matA[i][f]); } printf("\n"); } for(i=0;i<RADKY;i++) { for(f=0;f<SLOUPCE;f++) { printf("%2d ",matB[i][f]); } printf("\n"); } for(i=0;i<RADKY;i++) { for(f=0;f<SLOUPCE;f++) { matC[i][f]=matA[i][f]+matB[i][f]; } } for(i=0;i<RADKY;i++) { for(f=0;f<SLOUPCE;f++) { printf("%2d ",matC[i][f]); } printf("\n"); } }
run
|
edit
|
history
|
help
0
fun kce
Punteros: dame tres valores
Recorrido matriz bidimensional y busqueda valor
Bucles: Triángulos Lateral Derecho
strchr
marquee text in C
Herout (67) - 5
funny stack overflow
myblkqsort-ptr 20m numbers
Pointer_Indirectare_N