Rearrangement of
lines in a matrix.
The integer matrix of the order n is given. To
rearrange lines in decreasing order the sums of elements. The
sums of lines to deduce together with lines. Elements of a matrix are
entered from the keyboard.
Entrance data
Integer matrix of the order n.
Target data
Integer matrix of the order n and
the sum every line matrixes.
Entrance data
n=3
-6
2
1
-6
-8
-1
-7
-7
-9
Target data
-6 2 1 The Sum of a line is equal =-3
-6 -8 -1 The Sum of a line is equal =-15
-7 -9 -9 The Sum of a line is equal =-25
The author: Chupchicova Yulia.