-
Mathematical Question
Basically, say we have
int A;
int B;
int C;
What I want is...
the higher A, the less B is, but how much less depends on C. So, if C was 100, and A was 1, then B would be 100. But if C was 100, and A was 100, B would be 1 (for all the consecutive numbers)
Can anyone help?
-
by your explanation, I don't even see how C fits into the equation. From what I read, you just want
A = 1, B = 100
A = 2, B = 99
....etc.
How does C fit into that?
-
C doesn't = D
That's basically what I want... The higher A, the less B...
-
Then is this what you want?
B = 101 - A;
If A is 1 then B will be 100
If A is 2 then B will be 99
etc etc.
-
B is inversely proportional to A. So
B=C/A.