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