40-49

Results:

Array ( [0] => -44 [1] => -20 [2] => -45 )
Array ( [0] => -44 [1] => 1936 [2] => -20 [3] => 400 [4] => -45 [5] => 2025 )

Results:

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

Results:

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

Results:

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

Results:

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

Results:

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

Results:

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







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

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