Rust Taskbook Level 1.6

Задание 1

Tell me how many and what range of values ​​the type u8 can take.

Задание 2

Find the sum of all integers from 1 to 100.

Задание 3

Three symbols are given:

rustlet chr1: char = '1';
let chr2: char = '2';
let chr3: char = '3';

Add the values ​​of these symbols as integers.

Задание 4

Given a number containing the number of megabytes:

rustlet mb: f32 = 35.5;

Convert this value to bytes.

Задание 5

Two numbers are given:

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

Find out what percentage the first number is of the second.