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
CP=int(input())
SP=int(input())
if SP>CP:
print("Profit")
elif SP<CP:
print("Loss")
elif SP==CP:
print("No Profit - No Loss")
Comments
Excellent explanation sir
Leave a comment