numbers = [5,1,13,2,7,9,10]
- Use
each
to return an array with all of the elements from the numbers array that have two or more digits. - Refactor the code you implemented for #1 above to use
find_all
instead ofeach
. - Use
each
to find all of the elements from the numbers array whose squares are odd. (Example: 5 would be returned because 5^2 = 25 and 25 is odd. 10 would not be returned because 10^2 is 100 and 100 is even. - Refactor the code you implemented for #3 above to use
find_all
instead ofeach
.