Inappropriately Titled

Text

You should quit your job as a programmer if

If you are currently working as a computer programmer and cannot solve this problem in less than 10 no 5 minutes at the MOST in whatever language you know best or even in pseudo code you should quit your job because you’re almost certainly doing more harm than good. It doesn’t have to be the most efficient mind you, just A solution.

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”. 

According to an old blogpost on Coding Horror there are a large number of programmers who cannot solve even this simple problem. It’s so appalling I decided it’s worth resurrecting.

Original source:  Why Can’t Programmers.. Program?

Posted on Thursday, September 29 2011. Tagged with: programmingcomputer science
15
Notes
  1. wihtiko liked this
  2. mmmmmfishsticks reblogged this from coryleach and added:
    Just started learning...my eecs class. hmm, I hope I can
  3. edgarr reblogged this from lauraahchooo
  4. lauraahchooo reblogged this from coryleach and added:
    Use a for loop from 1 to 100 and some else-if’s to mod 3 and 5 (cout-ing appropriately) and BAM! Done! I’m only 3...
  5. kastilyo-kram reblogged this from coryleach and added:
    At least I’m not that bad…
  6. zombiechan reblogged this from coryleach
  7. coryleach posted this
Inappropriately Titled I'm a computer programer, and indie game dev currently working out of Nagoya, Japan.
You should follow me on twitter Here
Ask me anything
Previous Next