Rust Taskbook Level 5.10
Задание 1
Output the following pyramid to the console:
1
333
55555
7777777
999999999
333
55555
7777777
999999999
Задание 2
Ask the user for a number. Print the multiplication table for that number to the console. Below is an example for two:
terminal1 * 2 = 2
2 * 2 = 3
3 * 2 = 6
4 * 2 = 8
5 * 2 = 10
6 * 2 = 12
7 * 2 = 14
8 * 2 = 16
9 * 2 = 18
Задание 3
Given an array with some integers, for example, like this:
rustlet arr = [123, 456, 789];
Write code that will reverse the numbers in this array as follows:
rust[321, 654, 987}
Задание 4
Given an array with some integers, for example, like this:
rustlet arr = [123, 333, 133];
Replace all threes in each number with zeros, except for the threes at the beginning of the number:
rust[120, 300, 100}