19 of 100 menu

Rust Taskbook Level 2.9

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

Given an array of integers:

[1, 2, 3, 4, 5]

Swap the first and second elements of this array:

[2, 1, 3, 4, 5]

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

let num: u8 = 1;

Determine whether this variable contains a weekend or a weekday.

Given a variable containing temperature in degrees Celsius:

let tc: i16 = 25;

Write a program that converts this temperature to degrees Fahrenheit.

enru