Sale Season
It's the sale season again and Chef bought items worth a total of $X$ rupees. The sale season offer is as follows: - if $X \le 100$, no discount. - if $100 \lt X \le 1000$, discount is $25$ rupees. - if $1000 \lt X \le 5000$, discount is $100$ rupees. - if $X \gt 5000$, discount is $500$ rupees. Find the final amount Chef needs to pay for his shopping. ### Input - The first line of input will c
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