Rust Taskbook Level 1.2
Задание 1
Explain the difference between the i8 type and the u8 type.
Задание 2
Given an integer:
rustlet num: i32 = 123;
Print the last digit of this number to the console.
Задание 3
Given an integer:
rustlet num: i32 = 123;
Print the first digit of this number to the console.
Задание 4
Given an integer:
rustlet num: i32 = 123;
Print to the console the sum of the first and last digits of this number.
Задание 5
Given an integer:
rustlet num: i32 = 123;
Print the number of digits in this number.
Задание 6
Given an integer:
rustlet num: i32 = 1234;
Check if it is even or not.
Задание 7
Given a number:
rustlet num: u8 = 10;
Check that this is a two-digit number.