Try This Computer Science Problem

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?

×

Problem Loading...

Note Loading...

Set Loading...