Tagged "fizzbuzz"

Implement Fizzbuzz in Elixir

Let solve the classic programming challenge called “Fizzbuzz”. I get the problem statement from wiki.c2.com. Problem “Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.” Then let break it down: Given X from 1 -> 100 If X multiple of 3 return Fizz If X multiple of 5 return Buzz If X multiple of 3 and 5 return FizzBuzz Otherwise return the number Above all, make sure we understand the problem correctly.