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

which statement best explains how the connotation of the word yakking affects the tone of the sentence
Which type of tax does the federal government collect? A. sales tax B. income tax C. property tax
In a chemical reaction, 300 grams of reactant A are combined with 100 grams of reactant B. Both A and B react to completion. How much will the product weigh?
√2 (√72 + √2) PLEASE LEAVE ANSWER IN SURD FORM. THANKS :)))
write an equation of the line that has a slope -1/2 and passes through the point (-4,5)
Simplify the square root of 144/36
in tinker v. does moines why did the supreme court rule in favor of the students who wore armbands
frederick jackson turner what was his thesis
Which statement best explains why cells in organisms such as animals reproduce 1) cell division helps animals repair old cells. 2) cell division produces gluco
The sum of the angles of a triangle is 180 degrees. Angle Bis 10 degrees more than twice the size of angle A. Angle C is 30 degrees less than angle A. Find the