40-49

Results:

Array ( [0] => 1 [1] => -41 [2] => -17 )
Array ( [0] => 1 [1] => -41 [2] => 1681 [3] => -17 [4] => 289 )

Results:

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

Results:

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

Results:

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

Results:

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

Results:

Array ( [0] => -10 [1] => -5 [2] => -5 [3] => 0 [4] => -3 [5] => -6 )
Array ( [0] => -9.32 [1] => -4.66 [2] => -4.66 [3] => 0 [4] => -2.8 [5] => -5.58 )

Results:

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







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

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