Computer Science, asked by rkcheema4313, 4 months ago

Create a program to calculate 5% discount on total purchase of stationary in python.

Answers

Answered by kchaudhari0410
58

Explanation:

Following program shows you how to calculate discount.

In this program we get bill amount and discount from user and shows after discount amount using following formula

Discount = bill - (bill * discount / 100)

bill = int(input("Enter bill amount:"))

discount = int(input("Enter discount percentage:"))

output = bill - (bill * discount / 100)

print("After discount your bill is: ", output)

Output:

Enter bill amount: 2500

Enter discount percentage: 15

After discount your bill is: 2125.0

Answered by adityasingh6c
6

Answer:

bill = int(input("Enter bill amount:"))

discount = int(input("Enter discount percentage:"))

output = bill - (bill * discount / 100)

print("After discount your bill is: ", output)

Output:

Enter bill amount: 2500

Enter discount percentage: 15

After discount your bill is: 2125.0

Similar questions