Skip to content

Instantly share code, notes, and snippets.

@kaashmonee
Created November 14, 2017 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaashmonee/922e0727e2f55486c46a9e3929bc3766 to your computer and use it in GitHub Desktop.
Save kaashmonee/922e0727e2f55486c46a9e3929bc3766 to your computer and use it in GitHub Desktop.
Hello world ruby
$i = 100
$n = 3
while $n < $i do
puts("inside the loop i = #$n")
$n += 1
end
for i in 0..5
puts "value of local variable i is #{i}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment