Skip to content

mjtordesillas/katas.clojure.fizzbuzz.201906

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fizzbuzz Kata in Clojure

This is my first attempt to solve the FizzBuzz kata using Clojure

Goal

Write a program that returns 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".

Sample output

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
... etc up to 100

Stop reading until you have developed this part

New requirements

  • A number is Fizz if it has a 3 in it

  • A number is Buzz if it has a 5 in it

  • A number is FizzBuzz if

    • it has a 3 in it
    • it has a 5 in it
  • The previous requirements are still correct.

About

First attempt to solve FizzBuzz kata in clojure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published