Skip to content

Instantly share code, notes, and snippets.

@procload
Created March 6, 2012 13:43
Show Gist options
  • Save procload/1986349 to your computer and use it in GitHub Desktop.
Save procload/1986349 to your computer and use it in GitHub Desktop.
$i = 0;
$j = 0;
$k = 0
for i in 0..19
$i +=1;
until $j == ($i - 1)
$j +=1;
end
begin
$k +=1;
end while $k < $i
puts "i = #{$i}"
puts "j = #{$j}"
puts "k = #{$k}"
puts "i again = #{$i}"
puts '-------------'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment