C++ Taskbook Level 3.5
Задание 1
Given a text with words. Write into an array all words that begin with the letter "a".
Задание 2
Given an array of numbers, check that all elements of this array are positive numbers.
Задание 3
Given a string:
cpp"1203405"
Find the position of the last zero in the string.
Задание 4
Two arrays are given:
cppint arr[]1 = [1, 2, 3, 4, 5];
int arr[]2 = [4, 5, 6, 7, 8];
Print the common elements of these arrays to the console:
cpp4
5
Задание 5
Given a line:
cppstd::string str = "abc def jhi";
Count the number of words in this line.
Задание 6
Given a number:
cppint 12000
Count the number of zeros at the end of this number:
cpp3