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

Select the interval where the graph h is decreasing.
How did James Stanley Gilbert feel about the Panamanian jungle?
Select all the pairs of operations that have inverse relationships.
describe how one important thinker or leader from Latin America from the 18th century through the 20th century would have responded to Morel's view of capitalis
Close Read: Gaming Communities
Can I please have help
Katrina buys a 76-ft roll of fencing to make a rectangular play area for her dogs. Use 2({+w) = 76 to write a function for the length, given the width. Graph th
Benefits of working together {of ten sentences}please help us
Not all industries and not all firms have sufferedequally during COVID-19. Find two industries: one that suffered tremendously and one that suffered less. Then
11. Solve the inequality. g-6> -1