Here’s a version of FizzBuzz unlikely to be requested at a job interview. Forth is a stack-based language (like PostScript), which means you’ll be right at home if you’ve ever used a RPN-based HP calculator. Continue reading “FizzBuzz in Forth”
FizzBuzz is a famous recruitment interview question for programmers.
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”.
I imagine it can be used to weed out the ones who lied about everything on their application, since it is not exactly brain science nor rocket surgery. Continue reading “FizzBuzz in Common Lisp”