C++ Taskbook Level 4.3
Задание 1
Given a string of letters and numbers, get the position of the penultimate digit in this string.
Задание 2
Print to the console all numbers in the range from 10 to 1000, whose second-to-last digit is even.
Задание 3
Write a program that will generate the following string:
cpp"123456789"
Задание 4
Two integers are given:
cppint num1 = 12;
int num2 = 16;
Print the common divisors of these numbers to the console.
Задание 5
Given a string of integers separated by spaces:
cppstd::string str = "123 456 789";
Find the sum of the numbers in this line.
Задание 6
There is a line with the words:
cppstd::string str = "word1 word2 word3";
Get the first N words from this string.
Задание 7
Given an integer:
cppint num = 12345;
Get an array of the number's characters in reverse:
cppchar arr[] = {'5', '4', '3', '2', '1'};