Created
October 16, 2019 05:13
-
-
Save mushroomgead/1dfb550d8f184dbc2340be48b488b954 to your computer and use it in GitHub Desktop.
my challenge today
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function minimalMultiple(divisor, lowerBound) { | |
for (i=1; i <= lowerBound; i++) { | |
let result = divisor * i | |
if (result === lowerBound || result >= lowerBound) { | |
return result | |
} | |
} | |
} | |
minimalMultiple(1, 239) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment