Computer Science, asked by snewalkar4060, 11 months ago

A store charges $12 per item if you buy less than 10 items. If you buy between 10 and 99 items, the cost is $10 per item. If you buy 100 or more items, the cost is $7 per item. Write a program that asks the user how many items they are buying and prints the total cost.

Answers

Answered by sujithkumar14
0

i am writing this program in python.but you can easily understand

noi=input()

price=0

if noi<10:

price=noi*12

elif noi<=10 and noi>=99:

price=noi**10

else:

noi*7

print("price:",price)

Similar questions