{"id":4223,"date":"2021-09-25T23:00:00","date_gmt":"2021-09-25T17:30:00","guid":{"rendered":"https:\/\/www.codingbroz.com\/?p=4223"},"modified":"2021-09-25T11:13:09","modified_gmt":"2021-09-25T05:43:09","slug":"c-program-to-calculate-profit-or-loss","status":"publish","type":"post","link":"https:\/\/www.codingbroz.com\/c-program-to-calculate-profit-or-loss\/","title":{"rendered":"C Program To Calculate Profit or Loss"},"content":{"rendered":"\n

In this post, we will learn how to calculate profit or loss using C<\/strong> Programming language.<\/p>\n\n\n\n

\"C<\/figure>\n\n\n\n

If a product is sold at a price more than<\/strong> its cost price then the seller makes a Profit<\/strong>. For example: a plot was purchased at Rs 75,000 and six months later it was sold at 1,00,000 then there is a profit of Rs 25,000.<\/p>\n\n\n\n

If a product is sold at a price less than<\/strong> its cost price then the seller makes a loss<\/strong>. For example: a phone was purchased at Rs 20,000 and four months later it\u00a0was sold at 12,000 then there is a loss of Rs 8000.<\/p>\n\n\n\n

We will be using the same logic in our program to calculate profit or loss.<\/p>\n\n\n\n

So, without further ado, let\u2019s begin the tutorial.<\/p>\n\n\n\n

\n