C++ Taskbook Level 3.10

Задание 1

Given an integer:

cpplong num = 10203304506;

Print to the console the positions of all 0 digits in this number, except for the first and last.

Задание 2

Given an array of integers:

cppint arr1[] = {123, 334, 456, 556, 789};

Write numbers consisting of different digits into a new array:

cppint arr2[] = {123, 456, 789};
Задание 3

Given a fractional number:

cppfloat num = 12.34;

Write the integer part of the number in one variable and the fractional part in another:

cppint num1 = 12;
int num2 = 34;
Задание 4

Given an integer:

cppint num = 12345;

Get an array of number characters:

cppchar arr[] = {'1', '2', '3', '4', '5'};
Задание 5

The date is given in the following format:

cppstd::string date = "2025-12-31";

Convert it to the following format:

cppstd::string date = "31.12.2025";