← All problemsSign in

Lottery

LOTTERY GAME!! Danny Ocean and his wealthy friend Rusty Ryan are playing a lottery game,. You have to award them with X Rs. based on the number on which they are playing. The rules are: 1. If the user input matches the lottery number in the exact order, the award is 10,000 2. If all digits in the user input match all digits in the lottery number, the award is 3,000 3. If one digit in th

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start