Easy One-Electricity Bill
CodeChefOpen on judge ↗
Chef wants to calculate his Electricity bill,Help him to do so Acc to Conditions:- For First 50 units Rs 0.50/unit For next 100 units Rs 0.75/unit For next 100 units Rs 1.20/unit For unit above 250 Rs 1.50/unit An additional surcharge of 20% is added to the bill Input Integer n(number of units he consumed). Output Bill Amount. Constraints 1 Example Input: 150 Output: 120.00
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