Rust Taskbook Level 1.4
Задание 1
Tell me how many and what range of values the type i8 can take.
Задание 2
Tell me what is the difference between the i16 type and the f32 type.
Задание 3
Print to the console all even numbers from 2 to 100.
Задание 4
Given a string:
rustlet txt: &str = "abcde";
Loop through and output to the console all its characters one by one.
Задание 5
Two integers are given:
rustlet num1: u16 = 36;
let num2: u16 = 12;
Get the remainder of dividing the first number by the second.
Задание 6
Given an integer containing the minute number from 0 to 60:
rustlet num: u8 = 30;
Determine which quarter of an hour this value falls into.
Задание 7
A two-digit number is given:
rustlet num: u8 = 12;
Check that the second digit is greater than the first.