Бесплатный курс лекций по Python
Начало 11 декабря. Расписание: пн, чт в 20.15-21.00. Для записи вступи в канал →
13 of 100 menu

C++ Taskbook Level 2.3

Given an array of integers:

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

Find the sum of the squares of the elements of this array.

Given an array of integers:

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

Find the arithmetic mean of this array.

Given some integer:

int num = 12345;

Display its first three digits in the console.

Given an array:

unsigned int arr[10];

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

uzbytrmskk