return number - 1 until 0 ruby code example Example: ruby for loop for element in array do element.do_stuff end