Q3. A cloth showroom has announced the following festivel discount on the purchase of items, based on the total cost of the items purchased:
Total cost
Discount (%)
Less than Rs. 2000
5%
Rs.2001 to Rs.5000
25%
Rs.5001 to Rs.10000
35%
Above Rs.10000
50%
Write a program the total cost and to compute and display the amount to be paid by the customer after availling the discount.
Enter total cost:
Discounted amount to be
paid by the customer:
home
Solution
Solution
×
IF-ELSE JS