Skip to content

Instantly share code, notes, and snippets.

@sbernhardi
Last active November 10, 2016 15:43
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 sbernhardi/9f9e0fa4ec07d10b700c8810375fc6ca to your computer and use it in GitHub Desktop.
Save sbernhardi/9f9e0fa4ec07d10b700c8810375fc6ca to your computer and use it in GitHub Desktop.
CF Ruby 01
3.times do
puts "Hello!\n"
end
number = 0
while (number <= 10) do
p "the number is now #{number}"
number += 1
end
(0..10).each do |n|
p "the new number is #{n}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment