write a Program to input Cost price
and Selling price of an article Display
whether the sales is profit or loss
Answers
Answered by
0
Answer:
cp=int(input("Enter the cost price of the product"))
sp=int(input("enter the selling price of the product"))
profit=sp-cp
if profit==0:
print("No loss and Nom profit")
elif profit>0:
print("We got profit")
else:
print("Into the loss")
Explanation:
1. Two variables for selling price and cost price
2. calculate profit(selling price-cost price)
3. First condition check whether profit equal to 0.
4. If profit is positive integer we confirm profits
5. else loss
Similar questions