Skip to content

Write a Python to find sale price of an item with given cost and discount (%).

Class 11th IP (065)

Write a Python to find sale price of an item with given cost and discount (%).

SOLUTION.

cost = float(input("Enter cost price: ")) discount = float(input("Enter discount %: ")) sale_price = cost - (cost * discount / 100) print("Sale Price =", sale_price)