![]() |
Given the Cost Price(CP) and Selling Price(SP) of a product. The task is to Calculate the Profit or Loss. Input: CP = 1500, SP = 2000
Output: 500 Profit
Input: CP = 3125, SP = 1125
Output: 2000 Loss
Formula:
Program to calculate Profit Or Loss Below is the required implementation: Python 3
Output: 500 Profit
Time Complexity: O(1) |
Reffered: https://www.geeksforgeeks.org
Python Programs |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |