Computer Science, asked by aryaman2007satapathy, 1 month ago

Write a program in python to calculate profit or loss percentage, when cost price is 20 and selling price is
30.

Answers

Answered by mukeshsharma4365
2

Answer:

Python Program to Calculate Profit or Loss actual_cost = float(input(" Please Enter the Actual Product Price: ")) sale_amount = float(input(" Please Enter the Sales Amount: ")) if(actual_cost > sale_amount): amount = actual_cost - sale_amount print("Total Loss Amount = {0}".

Answered by Radhaisback2434
0

Answer:

Input: CP = 1500, SP = 2000

Output: 500 Profit

Input: CP = 3125, SP = 1125

Output: 2000 Loss

Formula:

Profit = (Selling Price - Cost Price)

Loss = (Cost Price - Selling Price)

Similar questions