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. |
his was really very informative site for me. I really liked it. Thanks a lot!. Artificial Intelligence Technology in Business
ReplyDelete