prints all of the elements of an array that are of type double