This algorithm is fairly strait forward, but let's trace it anyway.
Print: How many cones do you plan to sell?
User Input 1:
cones: 1
gallons: roundup(1/24) = 1
Print: Gallon(s) needed: 1
Print: How many cones do you plan to sell?
User Input: 24
cones: 24
gallons: roundup(24/24) = 1
Print: Gallon(s) needed: 1
Print: How many cones do you plan to sell?
User Input: 25
cones: 25
gallons: roundup(25/24) = 2
Print: Gallon(s) needed: 2
Print: How many cones do you plan to sell?
User Input: 259
cones: 259
gallons: roundup(259/24) = 11
Print: Gallon(s) needed: 11