This Gist was automatically created by Carbide, a free online programming environment.
Last active
October 30, 2021 00:38
-
-
Save jerbear2008/df285ae195030b2130305cef96892970 to your computer and use it in GitHub Desktop.
Types of Items solver
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
let valA = 2 | |
let valB = 4 | |
let valTotal = 40 | |
let countTotal = 13 | |
let numerator = valTotal - (valB * countTotal) | |
let denominator = valA - valB | |
let countA = numerator / denominator | |
let countB = countTotal - countA | |
let object = { | |
a: countA, | |
b: countB | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment