Computer Science, asked by big427042, 29 days ago

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

Answers

Answered by madhavirameshr
0

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

Explanation:

hope it helps please  mark me as brainliest

Answered by diptibhatia40
0

Answer:

this is your ans of 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

Attachments:
Similar questions