Back to Practice
#0086
Profit, Loss and Marked Price
EasyAptitude12 min10 XP
Problem
An item costs 800. It is marked 25% above cost and then sold at 10% discount on marked price. Find profit percentage.
Why This Matters
Profit-loss questions are mostly percentage translation. The trick is knowing which base each percentage uses.
Examples
Example 1
InputCP 800, markup 25%, discount 10%
Output12.5%
Discount is on marked price, profit percent is on cost price.
Constraints
- Use cost price as base for profit percentage.
- Use marked price as base for discount.
- Do not subtract percentages directly.
CodeReasoning
An item costs 800. It is marked 25% above cost and then sold at 10% discount on marked price. Find profit percentage.
Visible browser tests run here when available.
Testcases1 visible / 3 hidden categories
Practice prompt
InputCP 800, MP 25% above CP, discount 10%
Expected12.5%
MP=1000, SP=900, profit=100.
Hidden Test Categories
different markuploss after discountsuccessive percentages