PHP Taskbook Level 10.7

Задание 1

Input is given. A long word is entered into it. Output a list of words that can be formed from the letters of the word entered into the input.

Задание 2

Given a string containing two fractions and a mathematical operation between them:

php'2/3 + 3/4'

Write code that will calculate the result of the written mathematical operation.

Задание 3

Given an arbitrary two-dimensional array:

php[
  [1, 2, 3, 4, 5],
  [1, 2, 3, 4, 5],
  [1, 2, 3, 4, 5],
  [1, 2, 3, 4, 5],
  [1, 2, 3, 4, 5],
]

Get the sum of the columns of this array. Present the result as an array of sums:

php[
  5, 10, 15, 20, 25
]