Hi,
I'm having problems with week 2 exercise 36.2.
I'm currently working on 36.2. I can't figure out how to print the sum of all the user input! Only one of the numbers is output. I've tried looking around online for similar problems with solutions, but they use concepts I haven't learned yet (do and for). How does one go about doing this with a while-loop? I have a feeling the sum+=variable trick isn't the right one. I'm guessing that the loop is broken with break before more numbers can be admitted. How do I prevent this breaking from happening if that is the case?
For now, I'll move on to some other exercises
Best regards,
Sean
Supported languages are English and Finnish
Please use our build in TMC Pastebin when asking questions related to your code:
TMC Plugin has built-in code sharing feature.
In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.
You may use our web interface to share code snippets: http://paste.mooc.fi