Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how can l find 4L from 5L and 3L

–3 votes
asked Nov 11, 2019 by xsevdam (350 points)
in c++ programming

1 Answer

0 votes
answered Nov 12, 2019 by Admin (5,130 points)
It seems question lacks clarification on exactly what is required. Please share more details.
commented Nov 16, 2019 by xsevdam (350 points)
we have 2 bottle.they are 3L and 5L.our task:we must fill 5L bottle  with 4L water(in this task we must to use bottles of 3L and 5L )
1:we fill 5L
2:we unload 5L to botlle of 3L
3. bottle of 5L consist of 2L water, bottle of 3L consist of 3L and we unload this bottle
4.we unload 2L water to bpttle of 3L
5.we fill bottle of  5L again
6.we unload bottle of 5L to 3L
7.and so on bottle of 5L consist of 4L.
we must to write program about this question
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.