def count_between(array, lower_bound, upper_bound) new_array =  array.each do |x| if x >= lower_bound && <= upper_bound new_array.push(x) end return(new_array.length) end
and here is the error which I don't understand.
array.rb:4: syntax error, unexpected <= if x >= lower_bound && <= upper_bound
This post has been edited by macosxnerd101: 10 December 2013 - 04:01 PM
Reason for edit:: Please use code tags