InterviewSolution
| 1. |
write a program to input the cost price or sell price and check weather there is profit or loss and also find the profit and lose percentage. |
|
Answer» Write a program in python to input the SELLING price and cost price from the user and find the profit and loss of the product??? Explanation: Python Program to Calculate Profit or Loss CP = float(input(" PLEASE Enter the Cost Price of the product: ")) SP = float(input(" Please Enter the Sale Price of the product: ")) if(CP > SP): amount = CP - SP print("TOTAL Loss Amount = {0}".format(amount)) ELIF(SP > CP): amount = SP - CP print("Total Profit = {0}".format(amount)) else: print("There is no Profit no Loss....") OUTPUT Please Enter the Cost Price of the product: 6000 Please Enter the Sale Price of the product: 4700 Total Loss Amount = 1300.0Explanation:hope it helps please mark me as brainliest |
|