27 of 100 menu

Rust Taskbook Level 3.7

Given a string, capitalize the last letter of each word in this string.

Given a string, check that this string consists of only even digits.

Given an array of fractions:

let arr: [f32; 5] = [1.456, 2.125, 3.32, 4.1, 5.34];

Round these fractions to one decimal place.

Given are integers separated by commas:

let txt: &str = "12,34,56";

Find the sum of these numbers.

Given a certain number, for example, this one:

let num: u16 = 123789;

Remove all odd digits from this number. In our case, we get the following result:

28

Given a number:

let num: i16 = 12000;

Get a string consisting of zeros from the end of this number:

"000"
enru