Rust Taskbook Level 5.4

Задание 1

In an infinite loop, ask the user for a number. Each time, add the entered number to the vector and output the sum of the vector elements to the console.

Задание 2

Given some integer:

rustlet num: u16 = 12345;

Check that the digits of this number are in ascending order.

Задание 3

Given some array:

rust[123, 456, 789]

Get an array of the first digits of the numbers in the first array:

rust[1, 4, 7]
Задание 4

Create the following array using loops:

rust[
  ['x', 'x', 'x'],
  ['x', 'x', 'x'],
  ['x', 'x', 'x'],
}