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 phrase best completes the following sentence? A Sonia y Kenji_____los carros antiguos. Select one: 1.les fascinan 2.os fascina 3.se fascina 4.me fascinan
Who sets bail for criminal offenses
Write the equation in standard form y=-x+1
(-1,-3); slope 5 PLEASE HELP
The lengths of the sides of quadrilateral EFGH are as follows: EF = 12 cm, FG = 6 cm, GH = 9 cm, and EH - 9 cm. If EFGH - MNOP and NO = 7.5 cm, which statement
Which statement best describes what happens to the stability of hydrogen and oxygen atoms when they form bonds in a water molecule?
Through the successful study of personal finance, an individual will be better prepared to calculate financial risks able to spend available assets. faced with
Emma runs 12 miles in 5 hours. How many miles can Emma run per hour?
Please help!! Data just came in about the space pod's mission and the thrusters fired for exactly the same about of time and at the same force as they have in p
what are the characteristics of population?