Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Python Program to Calculate Profit or Loss
- actual_cost = float(input(" Please Enter the Actual Product Price: "))
- sale_amount = float(input(" Please Enter the Sales Amount: "))
- if(actual_cost > sale_amount):
- amount = actual_cost - sale_amount
- print("Total Loss Amount = {0}".format(amount))
- elif(sale_amount > actual_cost):
- amount = sale_amount - actual_cost
- print("Total Profit = {0}".format(amount))
- else:
- print("No Profit No Loss!!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement