Rust Taskbook Level 2.9

Задание 1

Use a loop to fill the array with even numbers from 1 to 100.

Задание 2

Given an array of integers:

rust[1, 2, 3, 4, 5]

Swap the first and second elements of this array:

rust[2, 1, 3, 4, 5]
Задание 3

Given an integer containing the day of the week number from 1 to 7:

rustlet num: u8 = 1;

Determine whether this variable contains a weekend or a weekday.

Задание 4

Given a variable containing temperature in degrees Celsius:

rustlet tc: i16 = 25;

Write a program that converts this temperature to degrees Fahrenheit.