Set 126 Practical Question

⭐ Q27. लाभ या हानि का पता लगाना

Example Code (Read Only):


cp = float(input("Enter Cost Price: "))
sp = float(input("Enter Selling Price: "))
if sp == cp:
print("Profit =", sp-cp)
print("Loss =", cp-sp)

Python Online Editor