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

nitrogen is made up of two isotopes N-14 and N15. given nitrogen’s atomic weight of 14.007 what is the percent abundance of each isotope
What do geographers learn when they study human-environment interaction?
Why does Gladwell us the word bargain instead of agreement or deal
Viruses can survive refrigerator and freezer temperatures true or false
HELP! Name the five steps in writing a good summary
What is the total length of 5.5 pieces of toy train track that measure 8.5 inches each?
​digestible carbohydrates are broken down or converted into ____ inside the body. a. ​lactose b. ​sucrose c. ​galactose d. ​glucose e. fructose​
the value of all things needed to create the good or service
How does the cat symbolize and support the theme of this story
Please help!!!!!!! 20 points!!!!!!!! also your supposed to do everything with this question > how can dolphins understand signals that humans signal to them
good job