jamiyacooks1798 jamiyacooks1798
  • 08-07-2019
  • Computers and Technology
contestada

2.Use loops to create a 4X6 matrix in which the value of each element is two times its row number minus three times its column number. For example, the value of element (2,5) is 2x2-3x5=-11.

Respuesta :

SerenaBochenek SerenaBochenek
  • 14-07-2019

Answer:

for(i=0; i<4; i++)

{

      for(j=0;j<6;j++)

      {

               A[ i ][ j ] = 2* i - 3*j;

      }

}

Explanation:

In this loop for each i = 0,1,2,3 we fill the the corresponding column values. and then move to next i value i.e. row.

Answer Link

Otras preguntas

during which step of cellular respiration is the most ATP produced
Why is food security not achieved in some communities?
The graph of an exponential function is given. Which of the following is the correct equation of the function? y = 0.65x y = 2.4x y = 3.5x y = 0.32x
What is the meaning of instrument in the sentence below? She was the chief instrument of change in the revolution 2. a tool used in procedures, like surgery 3.
The sides of a triangle are 7, 4, n. If n is an integer, state the largest and smallest possible values of n.smallest value-largest value-plz help
​walmart's practice of using a​ ________ strategy is designed to promise ultimate value to consumers.
What is the solution to the system of equations? 3x - 4y= 16 2x + 3y=5 A. (-4,1) B. (4,-1) C.(-4,-1) D.(4,1)
write the equation of a horizontal line that goes through the point (-47, 44)
pLEASE HELP ASAP WILL GIVE BRAAINLIEST
"a lake is one example of local base level. a. true b. false"