Oct23


Using C++ : Check profit or loss in a transaction image

An article comprising a simple c++ program to check  whether a sale transaction is whether:

  1. Transaction in Profit
  2. Transaction in Loss
  3. Neither in Profile or Loss

The program with ask end-user to provide cost price and sale price. Using these values, the program will calculate the type of transaction.


|0 |42

Be Cool!

If you have any other method in your mind, feel free to share us in the comments below. We will include it with this post along with your credits.

Method 1

Using If else ladder

Ads By Google - Turn it Off

Leave a Comment


gfhdg