Java Taskbook Level 3.10

Задание 1

Given an integer:

javaint 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:

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

Write numbers consisting of different digits into a new array:

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

Given a fractional number:

javafloat num = 12.34;

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

cppint num1 = 12;
int num1 = 34;