RKS: Computer Science
Sunday, 14 November 2021
To find the sale price of an item with a given cost and discount (%).
price=
float
(
input
("Enter Price : "))
dp=
float
(
input
("Enter discount % : "))
discount=price*dp/100
sp=price-discount
print
("Cost Price : ",price)
print
("Discount: ",discount)
print
("Selling Price : ",sp)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment