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 selling price :- 100
Profit earned = 25
>>>
Enter the cost price :- 89
Enter the selling price :- 113
Profit earned = 24
>>>
Enter the selling price :- 113
Profit earned = 24
>>>
Best and easy to learn answers also
ReplyDelete😊😊🤗☺️
Deleteplease provide the output
ReplyDeleteOk .
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )