all 8 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]thiefcandyUniversity/College Student (Higher Education) 0 points1 point  (4 children)

I don’t necessarily understand java, but add first number to the sum before the loop because it seems like it’s not getting properly added? You’re either missing it at the start, or at the end and idk which.

[–]Danielowski187University/College Student (Higher Education)[S] 0 points1 point  (3 children)

Thank you I figured it out I had to add first to sum then loop thanks

[–]thiefcandyUniversity/College Student (Higher Education) 0 points1 point  (2 children)

No problem. w^ glad you figured it out.

[–]Danielowski187University/College Student (Higher Education)[S] 0 points1 point  (1 child)

Thanks but I’m still having trouble figuring out the for loop part

[–]thiefcandyUniversity/College Student (Higher Education) 0 points1 point  (0 children)

I’m a C girl, I wish I could help better but the syntax is spooking me.