Computer Science, asked by nandinisingh12914, 2 months ago

Write an
algorithm to find out the loss after
selling an article.​

Answers

Answered by Equestriadash
12

Algorithm:

  • Input the original price of the article.
  • Input the selling price of the article.
  • Calculate the loss [original price - selling price].
  • To find out the loss per cent, multiply the loss by 100 and divide it by the original price.

A Python Program for the same:

op = float(input("Enter the orignal price of the article: "))

sp = float(input("Enter the selling price of the article: "))

loss = op - sp

print("The loss incurred is", str(loss) + ".")

pc = (loss*100)/op

print("The loss per cent incurred is", str(pc) + ".")

Answered by BrainlyProgrammer
3

Answer:

Start

Accept Cost price and Selling price from the user

Calculate Loss by subtracting Selling Price from cost price

Display loss

Stop

Similar questions