Rust Taskbook Level 5.3

Задание 1

Ask the user to enter 10 numbers through the console. In response, output the sum of these numbers.

Задание 2

Given structure:

ruststruct User
{
  name: &str,
  surn: &str,
  age: u8,
}

Fill this structure with data.

Задание 3

Write a program that will output the following pyramid to the console:

999999999
88888888
7777777
666666
55555
4444
333
22
1
Задание 4

Given an array:

rustlet arr = [
  [
    [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],
    [1, 2, 3, 4, 5],
  ],
  [
    [1, 2, 3, 4, 5],
    [1, 2, 3, 4, 5],
    [1, 2, 3, 4, 5],
  ],
];

Print the sum of all elements of this array to the console.