Solve 101x + 99y and 99x + 101y by using elimination method?
Answers
Answered by
1
Solve:99x+101y=499 ; 101x+99y+501
9 Follow 0
99x + 101y = 499 ----- (i)
101x + 99y = 501 ---- (ii)
(i) + (ii) , gives
99x + 101y + 10x + 99y= 501 + 499 = 1000
200x + 200y = 1000
200(x+y) = 1000
x + y = 1000 / 200 = 5 ----- (iii)
Now (ii) - (i) , gives
101x + 99y - 99x - 101y =501 - 499 = 2
2x - 2y = 2
2(x-y) = 2
x - y = 1 ------- (iv)
(iii) + (iv) , gives
x + y + x - y = 5 + 1 = 6
2x = 6
x = 3 and y = 2
Ans: x = 3 and y = 2
Answered by
3
IF ELSE IF LADDER:-The if else if ladder is an extension of the if else conditional branching statement. It is used when we have to check multiple conditions before taking a decision. The if else ladder provides a proper skeleton to check multiple conditions, where every condition has a block of statement within itself.
if(condition expression)
{
Java Statement 1;
-----------------------
}
else if(condition expression)
Similar questions
English,
8 months ago
Biology,
8 months ago
Accountancy,
8 months ago
Accountancy,
1 year ago
English,
1 year ago
English,
1 year ago