Answer to Question #220752 in Python for Hari nadh babu

Question #220752

Profit or Loss


This Program name is Profit or Loss. Write a Python program to Profit or Loss, it has two test cases


The below link contains Profit or Loss question, explanation and test cases


https://drive.google.com/file/d/1D4lHuphIlZv7hGzq0mY8Y0-p892RyZFW/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-07-27T16:06:02-0400
CP=int(input())
SP=int(input())
if SP>CP:
    print("Profit")
elif SP<CP:
    print("Loss")
elif SP==CP:
    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

Aditya
26.08.22, 14:42

Excellent explanation sir

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS