Gabriel wants to fill up a large empty vase which can contain 10 liters of water. His robot is programmed to repeatedly fill a 1 liter water bottle, and empty the entire contents into the vase. Gabriel decides to program the robot to stop when the vase contains exactly 8 liters of water. What will happen?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The robot will repeatedly fill the vase till there are 8 liters of water. At which point, the program will terminate.