From: Dominic Son Date: 2006-07-23T19:48:26+09:00 Subject: Re: Dividing inside iterations? Thanks for your quick reply Joey. But it turns out you were wrong. jk. it worked. Thanks again man. Dominic Son Joey wrote: > Yes, but in assignement the variable goes on the left. > h = [40,20,50,200] > h.each do |num,total| > total = num / 24 > print "#{total} \n" > end > > j`ey > http://www.eachmapinject.com -- Posted via http://www.ruby-forum.com/.