x = 1
# do
loop do
 x += 1
 # pass the current iteration, unless x % 2 = 0
 next unless (x % 2) == 0
 puts x
 # stop if x >= 10
 break if x >= 10
end
y = 1
# while
while y <= 10
 y += 1
 next unless (y % 2) == 0
 puts y
end
# no need to use "break" with while
# because while itself is a condition
a = 1
# until
until a >= 10
 a += 1
 next unless (a % 2) ==0
 puts a
end
# for
numbers = [1,2,3,4,5]
for number in numbers
 puts "#{number}"
 # or just "put number", we use #{} inside paranthesis ""
 # this is called interpolation
end
# each
groceries = ["bannanas", "potatoes", "pasta", "tommatoes"]
# |food| is like:=> for food in groceries
groceries.each do |food|
 puts "Get some #{food}"
end
# each
(0..5).each do |i|
 puts "# #{i}"
end
# times
puts "Times:"
11.times do |i|
 puts i
end