I'm sure all of you guys know what the FizzBuzz programming question is. It's typically used for weeding out people who can't code in interviews, though I don't really know how prominent it is now a days. There was an interesting blog post by Jeff Atwood a couple years ago about FizzBuzz and how people couldn't do it that was rather interesting.
So in this thread, implement FizzBuzz in your programming language of choice with a twist on it or just regular FizzBuzz.
For those interested in what FizzBuzz is.
Loop through 100 numbers.
If the number is divisible by 3, print Fizz.
If the number is divisible by 5, print Buzz.
If the number is divisble by both, print FizzBuzz
If the number isn't divisible by either, print the number.
Should be an interesting way to see coding styles here in Southperry.
Use the [code] or [php] tag to format your code
TMP C++
Output
I did this because I was bored
Bookmarks