Rust Taskbook Level 1.6
Tell me how many and what range of values the type u8
can take.
Find the sum of all integers from 1
to 100
.
Three symbols are given:
let chr1: char = '1';
let chr2: char = '2';
let chr3: char = '3';
Add the values of these symbols as integers.
Given a number containing the number of megabytes:
let mb: f32 = 35.5;
Convert this value to bytes.
Two numbers are given:
let num1: f32 = 36;
let num2: f32 = 12;
Find out what percentage the first number is of the second.