Rust Taskbook Level 2.7

Задание 1

Given an array of integers:

rustlet arr: [u8; 5] = [1, 2, 3, 4, 5];

Find the sum of the squares of the elements of this array.

Задание 2

Given an array of numbers:

rustlet arr: [u8; 5] = [1, 2, 3, 4, 5];

Merge the elements of this array into a string:

rust"12345"
Задание 3

Given an array with a date:

rustlet arr: [&str; 3] = ["2025", "12", "31"];

From the elements of this array, collect the date in the following format:

rust"31-12-2025"