Reverse a division

7.2k Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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

$12=ab$

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