Sunday, 14 November 2021

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

 

  1. price=float(input("Enter Price : "))
  2. dp=float(input("Enter discount % : "))
  3. discount=price*dp/100
  4. sp=price-discount
  5. print("Cost Price : ",price)
  6. print("Discount: ",discount)
  7. print("Selling Price : ",sp)

No comments:

Post a Comment