There are 2 empty jars of 5 and 3 liters capacity. And a
river is flowing besides. I want to measure 4 liters of
wanter using these 2 jars. How do you do this?
Answers were Sorted based on User's Feedback
Answer / sonia
fill 5 liters jar and pour in 3 liters------ now you have 3 in 3 liters and 2 in 5 liters.
pour away the 3 in 3 liters jar and transfer the 2 in the now empty 3 liters.
Fill 5 liters jar again and pour in 3 liters jar----- Now you have 1 from 5 liters and 2 that were in 3 liters jar already. this gives you 4 in the 5 liters jar.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / guest
First fill up the 5 liters jar and start filling 3 liters
jar. so now second jar has 3 liters and first jar has 2
liters. Now again fill 5 liters fully and to complete
second jar 1 liter is needed. So, put water in second jar
from first jar. so, 3 liters jar is full now. And first jar
has 4 liters water.
| Is This Answer Correct ? | 4 Yes | 6 No |
What do you mean by variable?
how to swap to variables without using thrid variable in java?
oops concept is used for?
What is abstraction and encapsulation?
Program to print 0 to 9 in cross order
inheritence with example
Difference between vector and array
program for insertion ,deletion,sorting in double link list
Where is pseudocode used?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
what is diff between .net 1.1 and .net 2.0
Can destructor be overloaded?