Rust Taskbook Level 2.10

Задание 1

Given a variable containing the radius of the sphere:

rustlet r: f32 = 10.3;

Get the volume and surface area of ​​this sphere.

Задание 2

Two integers are given:

rustlet num1: u16 = 12;
let num2: u16 = 16;

Print to the console all common divisors of these numbers.

Задание 3

Given an array of integers:

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

Swap the first and last elements of this array:

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

A number of 6-digits is given

rustlet num: u16 = 123321;

Check that the sum of the first three digits equals the sum of the second three digits.