C++ Taskbook Level 3.3
Given an integer:
int num = 1204;
Check if this number contains the digit 0
.
A certain word is given:
"abcba"
Check that this word is read the same from either side.
Given an array:
int[] {1, 2, 3, 4, 5, 6}
Get the last two elements from it:
int[] {5, 6}
Given an integer:
int num = 12345;
Check that each digit in it is 1
greater than the previous one.
Given an array of fractional numbers:
float arr[] = {1.11, 2.23, 3.45, 4.66, 5.98};
Round the elements of this array to the integer part and write them to a new array.
Given a line:
"abc_abc_abc_abc_abc_abc"
Replace the first three underscores with hyphens:
"abc-abc-abc-abc_abc_abc"