Answer to Question #227230 in Python for Reclimet

Question #227230

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

1
Expert's answer
2021-08-18T11:20:26-0400
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!!!")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS