Ask Question
13 May, 21:40

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.

+4
Answers (1)
  1. 14 May, 01:14
    0
    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.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers