33 of 100 menu

C++ Taskbook Level 4.3

Given a string of letters and numbers, get the position of the penultimate digit in this string.

Print to the console all numbers in the range from 10 to 1000, whose second-to-last digit is even.

Write a program that will generate the following string:

"123456789"

Two integers are given:

int num1 = 12; int num2 = 16;

Print the common divisors of these numbers to the console.

Given a string of integers separated by spaces:

std::string str = "123 456 789";

Find the sum of the numbers in this line.

There is a line with the words:

std::string str = "word1 word2 word3";

Get the first N words from this string.

Given an integer:

int num = 12345;

Get an array of the number's characters in reverse:

char arr[] = {'5', '4', '3', '2', '1'};
enru