Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. while(you havenโ€™t gotten 1 in one of the containers yet){
  2. while(698 is not full){
  3. Fill 277 container
  4. Pour as much as possible into 698 container
  5. }
  6.  
  7. When 698 becomes full, empty 698
  8. Pour the remaining amount in the 277 into the 698
  9. }
  10.  
  11. The idea here is there will be some amount left in the 277 when the 698 gets full. Each iteration of the outer loop will change this value. After the small container is filled 63 times, and the large one is emptied 25 times, you will have 1 fl. oz left.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement