“Adición de matriz en JavaScript” Código de respuesta

Adición de dos matriz en JavaScript

//Declare and initialize 2 two-dimensional arrays a and b.
//Calculate the number of rows and columns present in the array a (as dimensions of both the arrays are same) and store it in variables rows and cols respectively.
//Declare another array sum with the similar dimensions.
//Loop through the arrays a and b, add the corresponding elements
//e.g 
matrix a11 = [1 0 1
              5 4 6]
matrix b11 = [ 2 2 2
              2 3 1]
a11 + b11 = var sum11;
//Display the elements of array sum.
print (sum11);
Your help :P

Adición de matriz en JavaScript

matrix a11 = [1 0 1
              5 4 6]
matrix b11 = [ 2 2 2
              2 3 1]
a11 + b11 = var sum11;
//Display the elements of array sum.
print (sum11);
Courageous Chipmunk

Respuestas similares a “Adición de matriz en JavaScript”

Preguntas similares a “Adición de matriz en JavaScript”

Más respuestas relacionadas con “Adición de matriz en JavaScript” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código