Java Taskbook Level 2.10

Задание 1

Given a variable containing the radius of the sphere:

javafloat r = 10.3;

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

Задание 2

Two integers are given:

javaint num1 = 12;
int num2 = 16;

Print to the console all common divisors of these numbers.

Задание 3

Given an array of integers:

javaint[] {1, 2, 3, 4, 5};

Swap the first and last elements of this array:

javaint[] {5, 2, 3, 4, 1};
Задание 4

A number of 6-digits is given

javaint num = 123321;

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