Reverse a division

$\begingroup$

I'm working on a program and I'm starting to regret the way I've done this. I start with a user selected number between 0.2 and 24 (lets call it a) then divide 12 by that number (so 12/a = b). Is there a way I can get a from the result, b?

I know that if you knew a, you could do a * b = 12 though that's not an option for me.

$\endgroup$ 0

1 Answer

$\begingroup$

$\frac{12}{a}=b$

$12=ab$

$\frac{12}{b}=a$

$\endgroup$ 0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like