Code CODO
Home
Basic JS
If-Else JS
If-Else JS (Part-2)
QUESTION
(10). Write a program to compute the amount that a customer pays for the taxi that he hires based o the following conditions:
Kilometre
Amount Per Kilometre
Upto less pr equal to 1 km
25
More than 1 to 6 km
10
More than 6 to 12 km
15
More than 12 to 18 Km
20
Enter the Kilometre
The Amount as per you travel
CopyRights@2023 Code-CODO.online.All Rights Reserved