Rust Taskbook Level 5.3
Ask the user to enter 10 numbers through the console. In response, output the sum of these numbers.
Given structure:
struct User
{
name: &str,
surn: &str,
age: u8,
}
Fill this structure with data.
Write a program that will output the following pyramid to the console:
999999999
88888888
7777777
666666
55555
4444
333
22
1
88888888
7777777
666666
55555
4444
333
22
1
Given an array:
let 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.