31 of 100 menu

C++ Taskbook Level 4.1

Given a string of letters and numbers, get the position of the first digit in that string.

Write a program that will generate the following string:

"xxxxx"

Given an array:

int[] {1, 0, 2, 3, 0, 5}

Remove all zeros from the array and write the result to a new array:

int[] {1, 2, 3, 5}

Given an array:

int arr[5]

Write code that will fill this array with powers of two:

{2, 4, 8, 16, 32}
enru