Rust Taskbook Level 5.1
Задание 1
Ask the user to enter two numbers via the console. Output the sum of these numbers.
Задание 2
Create a vector of two-digit integers containing one digit 2.
Задание 3
Given a number:
rustlet num: u16 = 133;
Determine if any of the digits in this number are the same.
Задание 4
Given an array:
rustlet arr: [[i8; 3]; 3] = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
];
Print all elements of this array to the console.
Задание 5
The following motorcade was given:
rustlet tpl: [&str, &str, i8];
Write the user's first name, last name, and age into this tuple.
Задание 6
Write a program that will output the following pyramid to the console:
x
xx
xxx
xxxx
xxxxx
xx
xxx
xxxx
xxxxx