Ice-Cream Vending Machine
CodeChefOpen on judge ↗
An Ice-Cream vending machine has multiple options for creating a customized Ice-Cream.You can choose between Cup & Cone by clicking on the button 1 and 2 respectively. You can also choose the flavour of each scoop by clicking the button between $1$ to $5$. One Ice-Cream cannot have more than $3$ scoops. Your job is to find the final cost of the Ice-Cream. (If the number entered exceeds the range
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start