Computer Science, asked by sumansharma021952, 7 months ago

write aprogram to calculate profit percentage from the sales of good that you made​

Answers

Answered by Aastha200722
3

Answer:

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.0

Explanation:

HOPE IT'S HELPFUL TO YOU SO PLEASE MARK ME AS BRANLIEST.....

Similar questions