Skip to content

lipfreitas/one-if-comparison-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One If for Number Comparison

Original Challenge

Write a program using Solid, that could iterate a set of numbers, and test if it is a multiple of three and five, then print the name of the divisors instead of the number. Using solid principles, with only one If.

Installation

git clone https://github.com/lipfreitas/one-if-comparison-challenge

Usage

Run on terminal

php challenge.php

Example output

//output example test 1 to 15
1
2
Three
4
Five
Three
7
8
Three
Five
11
Three
13
14
ThreeAndFive

About

Backend Challenge with use of only one if comparison

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages