40-49

Results:

Array ( [0] => 4 [1] => -14 [2] => -24 )
Array ( [0] => 4 [1] => -14 [2] => 196 [3] => -24 [4] => 576 )

Results:

Array ( [0] => 1 [1] => 1 [2] => 2 [3] => 0 [4] => -1 [5] => 2 )
Не образуют последовательность

Results:

Array ( [0] => 5 [1] => 5 [2] => -8 [3] => 7 [4] => 4 [5] => -8 )
Положительный массив
Array ( [0] => 5 [1] => 5 [2] => 7 [3] => 4 )
Отрицательный массив
Array ( [0] => -8 [1] => -8 )

Results:

Array ( [0] => -3 [1] => -8 [2] => -3 [3] => 5 [4] => 2 [5] => -6 )
Array ( [0] => -3 [1] => -8 [2] => -3 [3] => 5 [4] => 2 [5] => -6 [6] => 10 [7] => 7 )

Results:

Array ( [0] => 6 [1] => 9 [2] => 4 [3] => -2 [4] => -8 [5] => -9 )
Сумма отрицательных элементов =19
Сумма положительных элементов =19
Нужно добавить:19-19= 0
Array ( [0] => 6 [1] => 9 [2] => 4 [3] => -2 [4] => -8 [5] => -9 )

Results:

Array ( [0] => 2 [1] => -3 [2] => 8 [3] => 0 [4] => -9 [5] => 0 )
Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 )

Results:

Array ( [0] => 0 [1] => 2 [2] => 2 [3] => -4 [4] => -3 [5] => 2 )
Не идут







Оставьте ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *