To define
the sum of positive and the sum of the negative elements of the matrix by sizes
N*M (N and M are not much than 10). The meaning are
inducted by the user, to introduct the matrix line by
line. If M and N are less or equal zero, or excess 10 to remove 0.
input data
the
quantity of the line and the quantity of
the column in the matrix through the gap, the elements of the matrix line by
line through the gap
output data
the sum
of positive elements, the sum of the negative elements (through ENTER)
example input data
3 4
1 2 3 4
1 5 4 8
9 -1 2 3
example output data
42
-1
author: Zibjuk T.V.