Please enable JavaScript to view the comments powered by Disqus.

FizzBuzz

A few days ago I posted a link on twitter to an age-old programming problem called ‘FizzBuzz’. The task is to “Write a program that prints the integers 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’”. For those learning to programme in Objective-C (like me!) this presents a problem that provides a nice challenge as it forces you to think through the logic involved, but is not something that seems overwhelming.
Read More...
Comments