Episode 13a - Code Flow With Loops

Exercises

  1. Perform the same exercise in the video with the following code:
    counter = 0
    8.times do
      if counter.even?
        puts "Even"
      else
        puts "Odd"
      end
      counter = counter + 1
    end
    
    puts "That was fun!"