Skip to content

laurenbrandstein/bottles_of_beer

 
 

Repository files navigation

First, fork this repository and run:

cd ~/Sites/
git clone https://github.com/your-username-here/bottles_of_beer.git

Next, copy the following code into sublime text, and save it as ~/Sites/bottles_of_beer/your_name_here/bottles_of_beer.rb:

# 99 Bottles of Beer on the Wall Exercise
#
# Write a program that prints 99 bottles of beer on the wall. The song goes as
# so:
#
# 99 bottles of beer on the wall
# 99 bottles of beer!
# You take one down and pass it around,
# 98 bottles of beer on the wall!
# ...
#
# And ends with
# 1 bottle of beer on the wall
# 1 bottle of beer!
# You take one down and pass it around,
# No more bottles of beer on the wall

Follow the instructions in the comments, and when you are finished, save the file, commit the code to Git and push it to GitHub:

cd ~/Sites/bottles_of_beer/
git add your_name_here/bottles_of_beer.rb
git commit -m "Adding bottles_of_beer exercise"
git push origin master

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%