> I'd write it this way, but only because I'm trying to learn ruby better. > > 1.upto(100) do |number| > a='' > a+= 'fizz' unless number.modulo(3) != 0 > a+= 'buzz' unless number.modulo(5) != 0 > a = number if a.empty? > puts a > end
That just made me look at my screen like the RCA dog. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:229044 Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
