C++ Taskbook Level 2.5

Задание 1

Given an array of numbers:

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

Find the sum of the positive elements of this array.

Задание 2

Given an array of numbers:

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

Print the elements of this array to the console in reverse order.

Задание 3

Given an array of strings containing integers:

cppstd::string arr[] = {"123", "456", "789"};

Transform this array so that the values ​​of the new array become integers:

cppint[] {123, 456, 789};