1. Go get a number
  2. Is the least significant digit of the number 0 or 5? Yes, go to 3. No, go to 6.
  3. Add the digits of the number. This is the sum
  4. Is the sum a multiple of 3? Yes, Say FizzBuzz. No, Say Buzz.
  5. go to 8
  6. Add the digits of the number. This is the sum
  7. Is the sum a multiple of 3? Yes, Say Fizz. No, Say the number.
  8. You are done

You must log in to comment.

in reply to @confusedcharlot's post: