Rust Taskbook Level 4.10

Задание 1

Given a certain vector, for example, this one:

rustlet vct = !vec[1, 2, 3, 4, 5, 6];

Divide the sum of the elements in even positions by the sum of the elements in odd positions.

Задание 2

Given a string:

rust"a bc def ghij"

Convert all substrings with less than or equal to three letters to uppercase. In our case, we should get the following:

rust"A BC DEF ghij"
Задание 3

There is a certain line with the words:

rust"aaa bbb ccc eee fff"

Capitalize the first character of every other word in that line. In our case, it should look like this:

rust"aaa Bbb ccc Eee fff"