weeks1to2/array/case&counter example.rb
2017-08-14 11:34:33 +10:00

21 lines
327 B
Ruby

something = "poo"
=begin case something
when "pear"
puts "something is a pear"
when "apple"
puts "something is an apple"
when "orange"
puts "something is an orange"
else
puts "That ain't fruit yo mama gave you!"
end
=end
# COUNTER
counter = 0
while counter <= 100..1000 do
puts counter
counter += 23
end