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 |
Can a varargs method be overloaded?
what is a class
What is polymorphism programming?
how to find the largest of given numbers in an array
How can we use the preprocessor #if and #elseif.
1. Define a class.
What do you mean by variable?
What type of Job you are providing?
Difference between new operator and operator new
What is Hashing and how is it done? Pictorial form?
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.
Where is pseudocode used?