Skip to main content

Java Help

1 reply [Last post]
Rebel6381
Offline
Joined: 2006-02-17
Points: 0

I'm attempting to create a program that acts like a cash register, how can i make the program save a number and then allow me to repeat the input action?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jprogram12
Offline
Joined: 2006-02-17
Points: 0

Use a while loop. You could ask the user to end by assigning a value and then check that the value is not entered when trying to enter the while loop