https://github.com/juniorb2ss/linio-challenger
Linio Challenger Test
https://github.com/juniorb2ss/linio-challenger
Last synced: about 1 year ago
JSON representation
Linio Challenger Test
- Host: GitHub
- URL: https://github.com/juniorb2ss/linio-challenger
- Owner: juniorb2ss
- Created: 2018-09-14T19:05:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T20:18:03.000Z (about 5 years ago)
- Last Synced: 2025-02-21T11:22:51.857Z (over 1 year ago)
- Language: PHP
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
# Challenge - Backend Developer
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 PHP, Kotlin and TypeScript
# Submission
You can create a public repository on your GitHub account and send the
link to us, or just send us a zip file.