Write a program that inputs cost and selling price for 10 items. the program then print if the overall profit occurred or loss occurred python
Answers
Answered by
5
cost=float(input("Enter cost price"))
sell=float(input("Enter selling price"))
If cost>sell:
print("The loss occurred is of ₹",cost-sell)
else:
print("The profit occurred is of ₹",sell-cost)
Similar questions