Skip to content
javatlacatiPublic

About

Interview exercise for Linio

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

liniobuzz

Interview exercise for Linio

Challenge –Backend Developer

Build Status License FOSSA Status

Write a program that prints all the numbers from 1 to 100. However, for multiples of 3, instead of the number, print "Linio". For multiples of 5 print "IT". For numbers which are multiples of both 3 and 5, print "Linianos".

But here's the catch: you can use only one if. No multiple branches, ternary operators or else.

Requirements

  • 1 if
  • You can't use else, else if or ternary
  • Unit tests
  • Feel free to apply your SOLID knowledge
  • You can write the challenge in any language you want. Here at Linio we are big fans of Java, PHP, Kotlin and TypeScript.

License

FOSSA Status

About

Interview exercise for Linio

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages