filling

CF

Filling Cans

Two cans are with capacity X and y liters.The program must determine the number of steps required to obtain exactly Z liters of liquid one of…