Gambling
Despite everyone's advice, Chef has decided to gamble away his money. Today he chose a dice game to bet on. Chef will roll $2$ die one after the other, and Chef wins if and only if the sum of the $2$ dice rolls is exactly $7$. The die are standard fair $6$-faced, with numbers $1$ through $6$ written on the sides. Chef's first roll turned up to be the number $A$. What number does Chef need on h
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