Skip to content

papamarfo/fizzbuzz_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fizzbuzz

Write an Elixir application that outputs Fizzbuzz starting from 1 every 2 seconds

For each multiple of 3, print "Fizz" instead of the number. For each multiple of 5, print "buzz" instead of the number. For numbers which are multiples of both 3 and 5, print "Fizzbuzz" instead of the number.

iex> Fizzbuzz.multiples(20)
1
2
Fizz
4
buzz
Fizz
7
8
Fizz
buzz
11
Fizz
13
14
Fizzbuzz
16
17
Fizz
19
buzz

Releases

No releases published

Packages

No packages published

Languages