The whole code runs like this:
User inputs price. price gets added to a total.
Say user inputs a price that he doesn't want. He hits 0 to remove the last value he inputted. It removes the last value he entered from the running total, and continues on. When he's done, he enters -1 and then...
Writing some code for a check out procedure.
When the user inputs '0', I want the code to null the zero and go back to the last balance. Hitting 0 means mistake and whatever total entered be removed from the running total.
if(itemPrice >= 0.01 & itemPrice <= 4999.99)
{
count ++...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.