Write A C++ Program To Determine Whether The Seller Made Profit or Loss. Also Determine How Much Profit or Loss He Made
If cost price and selling price of an item is input through the keyboard, write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred.
Formula :-
Loss = Cost price (C.P.) – Selling Price (S.P.)
Profit =Selling Price (S.P.)-Cost price (C.P.)
Profit or Loss is always calculated on the cost price. Marked price: This is the price marked as the selling price on an article, also known as the listed price
Output:
Enter The Selling Price
2500
Enter The Cost Price
200
Profit Is = 2300
Enter The Selling Price
need an explanation for this answer? contact us directly to get an explanation for this answer