Q9> A trader wants to sell his goods at a profit of 20%. Write a program that takes as input the cost-price of an article and determines the selling-price so as to earn the desired profit. Also, find the profit amount
Answers
Answered by
0
Answer:
def profit(cost):
profit_amount = float(cost * 20 / 100)
selling_price = float(cost + profit_amount)
print("Selling price is: ", round(selling_price, 2))
print("Profit amount is: ", round(profit_amount, 2))
cost1 = float(input("Enter the cost of your goods: "))
profit(cost1)
Explanation:
Hope this will helpful to you. :)
Similar questions