The profit from the sale of a stock can be calculated as follows: Profit= ((NS x SP)−SC)−((NS x PP)+PC) value, then the sale of the stock resulted in a profit. If the calculation yields a negative number, then the sale resulted in a loss. profit (or loss) from the sale of stock. Demonstrate the function in a program that asks the user to enter the necessary data and displays the amount of the profit or loss.



Answer :

Other Questions