Computer Science, asked by joeltjenny5262, 6 months ago

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 Anonymous
5

 {\boxed{\underline{\purple{\bf\tt{Program :} } }}}

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