Slightly ill, did not go to the university, asked:
Determine the largest element in each row of the matrix A [B, C], where B <= 10, C <= 15.

Can you explain what you need to do here?

    2 answers 2

    Do you have a matrix [10,15]:

    1. You do a cycle in the lines.
    2. You declare the variable max = the first element in this line.
    3. You run along the line and compare max with the current element x [i, j].
    4. If max <x [i, j] then max = x [i, j].
    5. You deduce max (or you write down somewhere).
    6. Go to the next line.
    • @whispeer Sorry, but the row loop is like. - Vlmake
    • @Vlmake ie a cycle that runs through the rows of the matrix (here's an example acmp.ru/article.asp?id_text=520 ) - whispeer

    Well ... What to do? Take a notebook from classmates and solve problems in it, that's it.

    And what is incomprehensible? Can you determine the largest element in a set of numbers (for example, in an array)? So run the definition of the largest element for each of the rows of the matrix. (How are the elements in the matrix addressed, you know?)

    Update

    Well, at least with fellow students, girls from the first party usually explain everything with pleasure.

    As far as I understood the task, B and C are the dimensions of the matrix, respectively, according to X and the game. And the numbers in the matrix are any.

    Update 2

    So you

    • get the size matrix "with a stock": 10 to 15;
    • request from the user these sizes. Check whether they climbs abroad, if yes, you swear at the user;
    • enter the matrix element by element; :(
    • go over the lines, in each find max. element and output;
    • PROFIT!