Computer Science, asked by dharmaveerasari, 3 months ago

WAP to input the cost price and selling price of an article. If the selling price is more than the cost price , calculate and display the profit percentage.

Answers

Answered by valeriy69
1

cp = float(input("cost price: "))

sp = float(input("sell price: "))

if sp > cp:

print(f"profit: {(sp / cp - 1) * 100:.2f}%")

\small\mathsf\color{lightgreen}useful?\: \color{white}\mapsto\: \color{orange}brainliest

Similar questions