------ art_18602_17297148.1180868855441
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
A non-golf solution of mine :
for n in (1..100)
if n%3 && n%5
puts "FizzBuzz"
elsif n%3
puts "Fizz"
elsif n%5
puts "Buzz"
else
puts n
end
end
Does above code fit for a job interview? :)
------ art_18602_17297148.1180868855441--