Ask Question
26 June, 18:15

Given two 2x3 (2 rows, 3 columns) arrays of integer, x1 and x2, both already initialized, two integer variables, i and j, and a boolean variable x1rules. Write the code that is necessary for x1rules to be true if and only if every element in x1 is bigger than its corresponding element in x2 and is false otherwise.

+1
Answers (1)
  1. 26 June, 19:54
    0
    x1Rules=true;

    for (i=0; i<2; i++)

    for (j=0; j<3; j++)

    if (x1[i][j] < = x2[i][j])

    {

    x1Rules=false;

    break;

    }

    Step-by-step explanation:

    The code is written above.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given two 2x3 (2 rows, 3 columns) arrays of integer, x1 and x2, both already initialized, two integer variables, i and j, and a boolean ...” in 📙 Mathematics 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