Rust Taskbook Level 4.1
Задание 1
Given a string of letters and numbers, get the position of the first digit in that string.
Задание 2
Given a vector:
rustlet vct = vec![1, 2, 3, 4, 5];
Find the sum of the first and last elements of the vector.
Задание 3
Write a program that will generate the following string:
rust"xxxxx"
Задание 4
Given a fractional number:
rustlet num: f32 = 12.34;
Write the integer part of the number in one variable and the fractional part in another:
rustlet num1: u16 = 12;
let num2: u16 = 34;