Permalink
Browse files

added Fizz Buzz exercise

  • Loading branch information...
1 parent 2134899 commit d1e704bc46b0673d5d72432ea4c833bb968a68ab @JonJagger committed Sep 1, 2012
Showing with 29 additions and 0 deletions.
  1. +29 −0 exercises/Fizz_Buzz/instructions
@@ -0,0 +1,29 @@
+Write a program that prints the numbers from 1 to 100.
+But for multiples of three print "Fizz" instead of the
+number and for the multiples of five print "Buzz". For
+numbers which are multiples of both three and five
+print "FizzBuzz?".
+
+Sample output:
+
+1
+2
+Fizz
+4
+Buzz
+Fizz
+7
+8
+Fizz
+Buzz
+11
+Fizz
+13
+14
+FizzBuzz
+16
+17
+Fizz
+19
+Buzz
+... etc up to 100

0 comments on commit d1e704b

Please sign in to comment.