30 of 100 menu

C++ Taskbook Level 3.10

Given an integer:

long num = 10203304506;

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

Given an array of integers:

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

Write numbers consisting of different digits into a new array:

int arr2[] = {123, 456, 789};

Given a fractional number:

float num = 12.34;

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

int num1 = 12; int num2 = 34;

Given an integer:

int num = 12345;

Get an array of number characters:

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

The date is given in the following format:

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

Convert it to the following format:

std::string date = "31.12.2025";
enru