Rust Taskbook Level 1.3

Задание 1

Tell me how many bytes the i8 type takes.

Задание 2

Print to the console all integers from 1 to 10.

Задание 3

Given a string, if there is more than one character in the string, print the second to last character of the string to the console.

Задание 4

Given an integer, check that the first and last digits of this number match.

Задание 5

Two integers are given:

rustlet num1: u16 = 36;
let num2: u16 = 12;

Print the larger of these numbers to the console.

Задание 6

Given a string containing an integer:

rustlet txt: &str = "123";

Convert this string to a number:

rust123
Задание 7

Given an integer containing a month number from 1 to 12:

rustlet num: u8 = 1;

Determine what season this month falls in.