zenware / FizzBuzz

FizzBuzz in every programming language, inspired by https://github.com/leachim6/hello-world
202 stars 71 forks source link

Update kotlin.kt #88

Closed CaelumF closed 5 years ago

CaelumF commented 5 years ago

Simplified. Added additional condition to 3 branch to correspond better with "FizzBuzz" problem description and make code more industry compatible, instead of using mod 15 which relies on undocumented mathematical knowledge.

zenware commented 5 years ago

@CaelumF How does that string templating work? Looks neat 👍