17 of 100 menu

C++ Taskbook Level 2.7

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 numbers:

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

Merge the elements of this array into a string:

"12345"

Given an array with a date:

std::string arr[] = {"2025", "12", "31"};

From the elements of this array, collect the date in the following format:

"31-12-2025"
enru