Fizz Buzz is a programming interview problem and exercise derived from a game meant to teach children arithmetic. The problem is stated as follows:

Print the numbers from 1 to 100 replacing numbers that are multiples of 3 with "Fizz", numbers that are multiples of 5 with "Buzz", and numbers that are multiples of both with "Fizz Buzz".

Solution

dbohdan 2018-04-01: The canonical way to solve Fizz Buzz in Tcl is this: