A pre – paid taxi charges from the passenger as per the tariff given below: Distance Rate Up to 10 km Rs. 50 For the next 20 km Rs. 30 For the next 20 km Rs. 20 More than 25 km Rs. 10 Write program to input the distance covered and calculate the amount to be paid by the customer.
Answers
Answered by
8
hope it will help you
please mark me brainlist
Attachments:
Similar questions