1. PROGRAM TO CALCULATE
DISCOUNT OR DISCOUNT %.
mp=int(input("enter the marked price:"))
sp=int(input("enter the sold price:"))
Discount%=mp-sp
print("discount of the object is:", discount)
Discount%=(discount/mp)*100
print("discount% of the object is:", round(discount%,2))
3. PROGRAM TO CHECK PROFIT OR LOSS.
cp=int(input("enter the cost price:"))
sp=int(input("enter the sale price:"))
if(sp>cp):
print("you get profit")
elif(cp>sp):
print("you get loss")
else:
print("no profit, no loss")