Business
CodeChefOpen on judge ↗
Ram is in a business, where he buys old scooter, he spends some money on its repair, then he sells it. You have to tell whether he was in profit or loss. Input Input will consist of 3 integers, i.e. Cost Price , Repairing overhead, Selling Price. Output If Ram had profit , the output will display PROFIT and if he had loss, the output will display LOSS. Example Input: 1000 500 2000 1500 3
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