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:
Output:
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. |