C program to calculate profit or loss
Here, we are going to calculate how much we gain the profit or loss on a product through cost price and selling price. When we purchase a Car in an "xxx" amount, it is called its cost price and then if we sell the Car in "yyy" amount, it is called its selling price, if "xxx" is greater than "yyy" then it will be a loss and if "yyy" is greater than "xxx", then it will be a profit.
Example: I purchased a house in Rs. 3000000 after that I sold that house after 2 years in Rs. 4000000. The sold price is higher than its purchased price, thus it will be a profit of 1000000.
Calculate profit or loss in C language
Outputneed an explanation for this answer? contact us directly to get an explanation for this answer