GitHub repository: leonofre/print-numbers
Primary language: PHP
Created: 2020-12-05T15:12:56Z
Description: Using SOLID principles, write a program that prints all the numbers from 1 to 100. However, for multiples of 3, instead of the number, print "Three". For multiples of 5 print "Five". For numbers which are multiples of both 3 and 5, print "ThreeAndFive". But here's the catch: you can use only one 'if'. No multiple branches, ternary operators or 'else'