Saturday, 29 August 2020

To find sale price of an item with given cost and discount (%).

Question 2: To find sale price of an item with given cost and discount (%).

Solution:
#To find sale price of an item with given cost and discount (%).
cost_price=float(input("Enter the price of item:"))
discount=float(input("Enter the discount %:"))
selling_price=float(((100-discount)/cost_price)*100)

print("The selling price of item is:",selling_price)

Source Code:


Source code:To find selling
 price of an item with given cost and discount (%).








Output:


Output of Source Code.

1 comment:

Please share your views by commenting below.