The Chain of Responsibility Pattern - Or how to over engineer FizzBuzz in PowerShell

added by DotNetKicks
4/27/2020 4:20:39 PM

276 Views

Write a script 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". There is nothing wrong with the approach.


0 comments