Posts by jp7webdesign • 1 point
1 post
-
0
votes3
answers113
viewsA: Rest of division in ruby
Hi, I took the opportunity to make my implementation to practice. values = [2, 7, 15, 11, 5, 30] new_values = [] values.each {|x| values.each { |y| (x % y == 0) and (x != y) ? new_values << x…
rubyanswered jp7webdesign 1