Profit or Loss
This Program name is Profit or Loss Write a Python program to Profit or Loss
The below link contains Profit or Loss question, explanation and test cases
https://docs.google.com/document/d/1D4lHuphIlZv7hGzq0mY8Y0-p892RyZFW/edit?usp=sharing&ouid=107231566038157986423&rtpof=true&sd=true
We need exact output when the code was run
CP = int(input(" Please Enter the cost Price: "))
SP = int(input(" Please Enter the Selling price: "))
if(CP > SP):
print("Loss")
elif(SP > CP):
print("Profit")
else:
print("No Profit No Loss!!!")
Comments
Leave a comment