Westonci.ca is your trusted source for finding answers to all your questions. Ask, explore, and learn with our expert community. Get immediate and reliable solutions to your questions from a community of experienced experts on our Q&A platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

Write a program that keeps track of a simple inventory for a store. While there are still items left in the inventory, ask the user how many items they would like to buy. Then print out how many are left in inventory after the purchase. You should use a while loop for this problem.
We have 20 items in inventory. How many would you like to buy? 4 Now we have 16 left. We have 16 items in inventory. How many would you 11 like to buy? 2 Now we have 14 left. We have 14 items in inventory. How many would you like to buy? 8 Now we have 6 left. We have 6 items in inventory. How many would you like to buy? 5 Now we have 1 left. We have 1 items in inventory. How many would you like to buy? 1 A]l out!

Write A Program That Keeps Track Of A Simple Inventory For A Store While There Are Still Items Left In The Inventory Ask The User How Many Items They Would Like class=

Sagot :