Profit Loss Calculator

Hi Guys!

Welcome to INFO HUB
Today, I want to share my python project.

The name of my project is "Profit Loss Calculator".

⦁ Work of project.

1. The work of my project is it will tell you what you get profit or loss when you enter (CP & SP).

  • Code of this project is:-

print("Welcome To Profit-Loss Calculator")


# Taking Input From User

CP = int(input("Cost Price (CP) : "))

SP = int(input("Selling Price (SP) : "))


if CP>SP:

    Loss = int(CP-SP)

    print("You get the loss of : ", Loss)


if SP>CP:

    Profit = int(SP-CP)

    print("You get the profit of: ", Profit)


if SP==CP:

    print("You did not get any loss or profit.")


print("Thank You")

______________________________________________

In this video, you can also watch the work of this project



Do you like this project?
Don't forget to comment.


Comments

Popular Posts