Ask Question
28 January, 06:33

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.

+2
Answers (1)
  1. 28 January, 06:42
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers