Rust Taskbook Level 4.2 of the Rust taskbook
Задание 1
Given a string of letters and numbers, get the position of the last digit in that string.
Задание 2
Print to the console all numbers in the range from 10 to 1000 whose first digit is even.
Задание 3
Given a vector:
rustlet vct = vec![1, 2, 3, 4, 5];
Find the sum of the squares of the elements of this vector and output it to the console.
Задание 4
Given an integer:
rustlet num: u16 = 12345;
Print to the console the number of even digits in this number.
Задание 5
Given an integer:
rustlet num: u16 = 12;
Print all divisors of this number to the console.
Задание 6
Two arrays are given:
rustint arr1: [i8: 5] = [1, 2, 3, 4, 5];
int arr2: [i8: 5] = [1, 2, 3];
Check that all elements of the first array are in the second.
Задание 7
Given an integer:
rustlet num: u16 = 12345;
Swap the first and last digits of this number:
rust52341