Your task is very "simple" - add code to read 8 values from the user and store them in the
array arrayA. Then print the number of multiples of X found (where X is a power-of-two
also entered by the user). By reusing your code in task 2, you only need to add a couple of
new instructions. Below is a sample run:
Program parsed
< 1
< 2
< 3
8 user input values
< 4
{1, 2, 3, 4, 5, 6, 7, 8}
< 5
< 6
<7
< 8
< 2
User input X = 2
> 4
Program Terminateu
Four multiples of 2 = {2, 4, 6, 8}
Please note that we read the array values before the user enters the value X. Your labTA will