0% found this document useful (0 votes)
12 views1 page

Calculate Selling Price After Discount

The document is a Python script that calculates the selling price of a product after applying a discount and a subsequent charge. It prompts the user to input the MRP and discount percentage, computes the selling price after discount, and then applies a 40% charge to determine the final selling price. The results are printed with two decimal precision.

Uploaded by

Rahul 28
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Calculate Selling Price After Discount

The document is a Python script that calculates the selling price of a product after applying a discount and a subsequent charge. It prompts the user to input the MRP and discount percentage, computes the selling price after discount, and then applies a 40% charge to determine the final selling price. The results are printed with two decimal precision.

Uploaded by

Rahul 28
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

# Get input from user

mrp = float(input("Enter MRP: "))


discount_percentage = float(input("Enter discount percentage: "))

# Calculate selling price after discount


selling_price = mrp * (100 - discount_percentage) / 100

# Calculate selling price after 40% charge


selling_price_after_charge = selling_price * 0.6

# Output selling price after discount and after charge


print(f"Selling price after discount: {selling_price:.2f}")
print(f"Selling price after 40% charge: {selling_price_after_charge:.2f}")

You might also like