This C++ program asks the user to input the sale price and purchase price of an item. It then calculates the difference between sale price and purchase price to determine if there was a profit or loss. If the difference is greater than 0, it prints "profit", otherwise it prints "loss".
This C++ program asks the user to input the sale price and purchase price of an item. It then calculates the difference between sale price and purchase price to determine if there was a profit or loss. If the difference is greater than 0, it prints "profit", otherwise it prints "loss".
This C++ program asks the user to input the sale price and purchase price of an item. It then calculates the difference between sale price and purchase price to determine if there was a profit or loss. If the difference is greater than 0, it prints "profit", otherwise it prints "loss".