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.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
how can l find 4L from 5L and 3L
–3
votes
asked
Nov 11, 2019
by
xsevdam
(
350
points)
in c++ programming
please-help
urgent-
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
1 Answer
0
votes
answered
Nov 12, 2019
by
Admin
(
5,100
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
:(
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
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.
...