36 of 100 menu

C++ Taskbook Level 4.6

Given a string, check that this string consists only of numbers.

Given an integer:

int num = 12345;

Get the first even digit from the end of this number.

Write a program that will generate the following string:

"54321"

Given an array of integers:

int arr[] = {123, 102, 345, 350};

Print to the console only those numbers that contain the digit zero.

Given a line:

"abcdef"

Get every second character of this string:

"acf"

Given an array:

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

Create a new array such that the new array contains all the elements of the first array except the elements with value 0.

enru