Q. Write a program to input the cost price, selling price and print the profit earned.

Answer :-

cost_price = int(input("Enter the cost price :- "))
selling_price  = int(input("Enter the selling price  :- "))
print("Profit earned = ",selling_price - cost_price )

Output :-

Enter the cost price :- 75
Enter the selling price  :- 100
Profit earned =  25

>>>


Enter the cost price :- 89
Enter the selling price  :- 113
Profit earned =  24

>>> 

4 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post