Skip to content

Possible instruction error in Basic math in JavaScript Guide? #703

Answered by Josh-Cena
iamvictati asked this question in Content
Discussion options

You must be logged in to vote

Sure. Your goal is to find a and b such that a % b = 250. In other words, a = b * c + 250, where b is something larger than 250 (so it can allow a remainder of 250). Therefore one easy solution is to pick b = 251 and c = 1, then you would have a = 251 + 250 = 501. Verify: 501 % 251 === 250.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@iamvictati
Comment options

@Josh-Cena
Comment options

Answer selected by iamvictati
@iamvictati
Comment options

@Josh-Cena
Comment options

@iamvictati
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants