Rust Taskbook Level 1.7
Задание 1
Tell me how many and what range of values the type u16 can take.
Задание 2
Find the sum of the squares of all odd integers in the range from 1 to 100.
Задание 3
Write code that will print the first N powers of two.
Задание 4
Three lines are given:
rustlet txt1: &str = "123";
let txt2: &str = "456";
let txt3: &str = "789";
Add the values of these rows as integers.
Задание 5
Given a string:
rustlet txt: &str = "123456789";
Find the sum of the digits in this line.
Задание 6
Given a fractional number containing the number of gigabytes:
rustlet gb: f32 = 35.24;
Convert this value to megabytes, kilobytes, and bytes.