Iamsopretty8969 Iamsopretty8969
  • 18-03-2020
  • Mathematics
contestada

Int[][] myvals = {{2, 4, 6, 8}, {20, 40, 60, 80} };​using the above two-dimensional array, what is the value of myvals[1][2]?

Respuesta :

joaobezerra joaobezerra
  • 18-03-2020

Answer:

myvals[1][2] = 4

Step-by-step explanation:

Int[][] myvals = {{2, 4, 6, 8}, {20, 40, 60, 80} }

This command means that we have the following matrix:

[tex]\left[\begin{array}{cccc}2&4&6&8\\20&40&60&80\end{array}\right][/tex]

using the above two-dimensional array, what is the value of myvals[1][2]?

This is the element at first row, column 2.

First row is {2, 4, 6, 8}

First row, column 2 is 4. So

myvals[1][2] = 4

Answer Link

Otras preguntas

Decide whether the function is a polynomial function. If so, write it in standard form and state its degree, type, and leading coefficient.h(x) = 19x4 − 419x2 +
How many numbers between 200 and 400 meet one or both of the conditions given in the two statements below? Statement 1: The number begins with 3 Statement 2: Th
Which metrical form was Pope said to have brought to perfection? a) the heroic couplet b) blank verse c) free verse d) the ode e) the spondee
what does space mean in dance???????
what is the exact volume of the largest cone that can fit into a cube with edges of 10 inches?
What is the median of 37, 39,40, 42,42, 45, 48, 49, 51, 52?
What is the perimeter of a triangle which sides measure 6, 8, and 10 inches?
factor completely:4x^3 - 36x
why do we need cardinal directions
One gallon of fuel mixture contains antifreeze in the ratio of 5 parts fuel to one part antifreeze. To this is added half a gallon of mixture which is one third