Rust Taskbook Level 1.2
Explain the difference between the i8 type and the u8 type.
Given an integer:
let num: i32 = 123;
Print the last digit of this number to the console.
Given an integer:
let num: i32 = 123;
Print the first digit of this number to the console.
Given an integer:
let num: i32 = 123;
Print to the console the sum of the first and last digits of this number.
Given an integer:
let num: i32 = 123;
Print the number of digits in this number.
Given an integer:
let num: i32 = 1234;
Check if it is even or not.
Given a number:
let num: u8 = 10;
Check that this is a two-digit number.