A taxi meter generated bill based on the kms travelled. Write a program to read the km travelled and find the bill as given below km rate/km first 10 km 10/- next 20 km 15/- next 20 km 20/- above 50 km 25/
Answers
Answered by
1
Answer:
for 1-10kms 10rs per km
for 11-30kms 15rs per km
for 31-50kms 20rs per km
above 50kms 25rs per km
Answered by
1
[tex]\begin{array}{| c | c }
\sf below \: \: 10 km & \sf10 \\
\sf next \: \: \: \: \: \: 20 \: \: km& \sf20 \\
\sf above \: \: \: 50 \: \: km & \sf25 \\
\end{array}[/tex]
Similar questions