Computer Science, asked by ravikumarsingh0835, 6 months ago

input the item name, price and number of items to calculate and print the item name cost and discount where discount is 10% of cost and cost is product of price and number of items​

Answers

Answered by faseelaandru
0

Python code:

name = input("Enter Item name: ")

price = float(input("Enter product price: "))

qty = float(input("Enter Qty"))

discount = 1/10

cost = price * qty

print("The name of the item is " + name + "and the total cost is " + cost + "Discount of 10% is  " + cost  * discount +  )

Similar questions