Rust Taskbook Level 3.5
Задание 1
Given an array of numbers, check that all elements of this array are positive numbers.
Задание 2
Given is a text with words. Also given is a symbol:
rustlet chr: char = 'a';
Output to the console all words that begin with a given character.
Задание 3
Given a string:
rust"1203405"
Find the position of the last zero in the string.
Задание 4
Two arrays are given:
rustint arr1: [i8: 5] = [1, 2, 3, 4, 5];
int arr2: [i8: 5] = [4, 5, 6, 7, 8];
Print the common elements of these arrays to the console:
rust4
5
Задание 5
Given a line:
rustlet txt: &str = "abc def jhi";
Count the number of words in this line.
Задание 6
Given some integer:
rustlet num: i16 = 12000;
Count the number of zeros at the end of this number:
rust3