20 of 100 menu

C++ Taskbook Level 2.10

Given a variable containing the radius of the sphere:

float r = 10.3;

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

Two integers are given:

int num1 = 12; int num2 = 16;

Print to the console all common divisors of these numbers.

Given an array of integers:

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

Swap the first and last elements of this array:

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

A number of 6 digits is given

int num = 123321;

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

enru