I have an application that requests several lines of input from the user (name, address, city, zip, bills paid, amounts) and then prints back the information including a product of the bills. The application then returns and prompts for another set of data or a sentinel terminator 'stop' to exit the loop.
Can I get a few o f you to show an example code to instead of the sentinel exit of the loop, to terminate it after a set number of inputs (say 5)? I have currently a while loop, but think maybe a for loop would work. I am just not finding much as an example showing termination syntax based on the number of iterations of the loop... Thank you in advance for any help. Craig Jensen
-- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
