04 Try it yourself Interactive

The reverse discount, one division at a time

Set the marked price, the final selling price and the first discount. The console finds the intermediate price, divides to recover the second discount, and then cross-checks the pair against the overall discount. If a combination is impossible — a selling price higher than the first discount alone would allow — it says so rather than returning a negative discount.

₹15,000 to ₹8,400, first 30%
second 20% · overall 44%
Try a selling price above the price after the first discount and watch it refuse: no second discount can raise a price.
Press Next to work through it one step at a time.
Marked
After first
Second disc
Overall
step 0 / 0