45 of 100 menu

Rust Taskbook Level 5.5

Ask the user to enter an integer between 1 and 10 via the console. If something else is entered, ask the user to enter the number again.

Create the following array using loops:

[ [1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3], ]

Given a string:

"abcdeabc"

Clear it from duplicate characters:

"abcde"

Given a string:

"abcde"

Convert all odd letters of this line to uppercase. In our case, we should get the following:

"AbCdE"

Given two tuples with dates:

let tpl1 = (2025, 11, 29); let tpl2 = (2027, 12, 31);

Check if the dates are equal.

Given a cortege with a date:

let tpl = (2025, 12, 31);

Write the data of this tuple into the following structure:

struct Date { year: u16, month: u8, day: u8, }
enru