posted 7 years ago
I feel like an idiot. I'm having 2 issues with the code below.
If the user inputs "n", rather than taking them back to the start and prompting for the numbers again, if simply repeats "Please provide the information again" in an endless loop.
The second issues, is the final lines. It outputs fine...however, it is not adding/updating the balances for each quarter.
The sample output is:
So, the first line/quarter is fine, but the following lines are not calculating properly.
I've spent 4 hours on this, and am completely stumped.
Thank you.