C++ Taskbook Level 2.3
Задание 1
Given an array of integers:
cppint arr[] = {1, 2, 3, 4, 5};
Find the sum of the squares of the elements of this array.
Задание 2
Given an array of integers:
cppint arr[] = {1, 2, 3, 4, 5};
Find the arithmetic mean of this array.
Задание 3
Given some integer:
cppint num = 12345;
Display its first three digits in the console.
Задание 4
Given an array:
cppunsigned int arr[10];
Use a loop to fill this array with integers from 1 to 10.