C++ Taskbook Level 2.4

Задание 1

Given some integer:

cppint num = 12345;

Print its last three digits to the console.

Задание 2

Given an array of numbers:

cppint arr[] = [1, 2, 3, 4, 5];

Find the sum of the square roots of the elements of this array.

Задание 3

Given an array of numbers:

cppint[] {1, 2, 3, 4};

Double each element of this array:

cppint[] {2, 4, 9, 8};
Задание 4

Given an array:

cppunsigned int arr[10];

Use a loop to fill this array with integers from 10 to 1.